This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
is it syscalls or library calls that are causing this problem? if it's library calls: first, you should check to see if the target you are compiling for has a flag that does this. if it doesn't, and you're feeling hard-core, you can try to edit the target description macros in gcc. this will make the generated code incompatible with whatever the real ABI (the one that gcc is configured for) specifies. and, it may not actually work at all, but if you're desperate... 1. find the target description macro .h file in (for example:) gcc-2.95.2/gcc/config/<your arch>/<your arch>.h 2. find the line that defines FUNCTION_ARG 3. make it say: #define FUNCTION_ARG(a,b,c,d) 0 4. recompile gcc & pray backup plan: figure out why it doesn't work ;-) OR, maybe if you're only having this problem when syscalls return args, find the files that define how a syscall is made, and fix those instead. (that depends on your libraries.) i suspect that neither of these approaches is going to be as easy as they sound. mt >------=_NextPart_000_0344_01C0A238.3DFF8C80 >Content-Type: text/plain; > charset="big5" >Content-Transfer-Encoding: quoted-printable > >Hi: > =20 > Do you know how to force compiler to compile functions that > pass and receive arguments in Stack,not in Registers, > I've encounter a situation ,a black box kernel put arguments in = >Stack, > and My program is compiled optimized,and receive some arguments > from Registers.This cause a error! > > =20 > >------=_NextPart_000_0344_01C0A238.3DFF8C80-- > > > ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |