Question about Gimple FE

2015-04-03 Thread Gry Gunvor
Gcc melt already advertises that it allows access to the internals: http://gcc-melt.org/ ; I have not tried it yet. This is of course not the same as a format that can be exported and then imported again, but it is attempting to get a similar result. (1) Can anyone comment on the quality/usabilit

Re: how to modify gcc to compile a[b] differently

2015-04-01 Thread Gry Gunvor
ner wrote: > On Wed, Apr 1, 2015 at 12:20 AM, Gry Gunvor wrote: >> I want to modify gcc 4.9.2 so that array subscripting expressions a[b] >> generate a new instruction/syscall foo(a, b) (that is, taking a and b >> as arguments) rather than just being turned into *(a+b). >

how to modify gcc to compile a[b] differently

2015-03-31 Thread Gry Gunvor
I want to modify gcc 4.9.2 so that array subscripting expressions a[b] generate a new instruction/syscall foo(a, b) (that is, taking a and b as arguments) rather than just being turned into *(a+b). Further, I want accesses into multi-dimensional arrays a[b][c] to turn into foo(a, (b * row_size + c