Mail Archives: djgpp/1995/09/13/11:09:03
>>>>> "Sliced" == Sliced Bread <Cuthalion> writes:
Sliced> You can _DO_ That? (Successfully, I mean?) Wow! I
Sliced> would have expected the compiler to outsmart me somehow
Sliced> and put things in a different order or something.
gcc seems to generate non-static functions in order. If this hack
makes you nervous (and it should), you can always throw in some
asserts that verify that the functions to be locked are between the
interrupt_start and interrupt_end addresses.
NOTE: this hack will NOT work for variables inserted between the start
and end addresses; you need to lock those separately. Of course,
that's easy since you have their address and size.
-Mat
- Raw text -