This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add additional code to function (c/c++) while compiling


Raphael Zulliger <zulliger@indel.ch> writes:

> i would like to add a very simple stack-protection (for our own-brewed
> os) to the code compiled with gcc 3.x. therefore i should be able to
> add about 5 lines of PPC assembler to each function body... first i
> hoped this should be quite easy - but it seams to be harder than
> expected. at least for me.

You might try taking a look at how -fstack-check is implemented.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]