2015-04-01 12:19 GMT+03:00 Richard Biener :
> You probably want to do this in the frontends.
And one of them is C++ :-)
The documentation I find online for modifying gcc is rather old. Is
there an up to date map of at least where in gcc the different stages
occur?
Suppose I just want to modify the instruction emitted for the "*"
operator. Where is that?
Gry
On Wed, Apr 1, 2015 at 2:19 AM, Richard Biener
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).
>
> Further, I want accesses into multi-dim
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