Re: Question on building a variably modified type at parameter scope

2013-03-08 Thread YU Chenkan
I found this is a bug in my front end because I used the same type for the parameters in different functions, so the references to the parameter in the structure messed up. The thing I want to implement is creating something like this pointers in C++ of structure type whose variably modified field

Generating data at link time

2013-06-01 Thread YU Chenkan
Dear all, I'm trying to generate a (very simple) special data section at link-time. It seems that LTO is too heavy, though I'm also not quite familiar with it. I think that what I first need is a new output format which wraps the standard ELF, so can anyone help to point out where I can get s

Question on building a variably modified type at parameter scope

2013-03-05 Thread YU Chenkan
HI, I'm a newbie and I'm trying to modify the front end to extend C. I know the following code can be accepted, void f (struct S { int a; } s, int a[][s.a]) { } . I'm wondering whether it is possible to build a structure which has a variably modified array whose size depends on an other