Altera_Forum
Honored Contributor
20 years agogp addressing used despite G0 flag
This is my situation:
an application of mine showed very strange behavior. After a few days working through the disassembled code, I found out that some functions provided by the projects syslib were using gp relative addressing with an offset of -32768. Even though this is a legal value it seems as if it was used by default, because using the G0 flag also with the projects system library solved most of the problems. Unfortunately, there are still some functions not working properly, like printf. I found out that __vfprintf_internal is still using gp relative addressing with an offset of -32768! I could not find the source code for this function, but I fear that it is assembler and using the %gprel macro. Any ideas on this issue? --Wolf