Specifying variable addresses manually in MIPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm writing patches for a Nintendo 64 game. I can assemble some code
and have the game load and run it, and I've identified several
functions and variables in the existing binary.

What I want to do now is write my patches in C instead of assembly. I
can easily declare function pointers to use the existing functions,
but I can't find a way to declare variables at a specific address.
Apparently ARM supports an 'at' attribute but that's not implemented
for any other platforms? Otherwise I'll have to use pointers for
everything (ugly) or define a bunch of variables in the link script
(hard to maintain).

Is such a feature available for MIPS?

-- 
Sent from my Game Boy.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux