Home » Developing U++ » U++ Developers corner » Endian specific source changes, for Universal support.
Re: Endian specific source changes, for Universal support. [message #7020 is a reply to message #7018] |
Fri, 08 December 2006 06:34   |
lundman
Messages: 175 Registered: March 2006 Location: Tokyo
|
Experienced Member |
|
|
So it seem OsX's gcc supply some defines when compiling for both architectures. I can, for example, use:
#ifdef __BIG_ENDIAN__
#define flagPPC
#undef flagX86
#endif
#ifdef __LITTLE_ENDIAN__
#undef flagPPC
#define flagX86
#endif
in Core.h, and let it pick the CPU type automatically.
I have been playing around with "Build methods" which I have largely ignored until now, and I see the potential there. Instead of any code change, I can define GCC32 method, GCC32_Intel, and GCC32_Universal methods, and specify the compile options needed.
However, what does seem to be missing is the linking flags.
Very nice though.
|
|
|
 |
|
Endian specific source changes, for Universal support.
By: lundman on Fri, 08 December 2006 02:33
|
 |
|
Re: Endian specific source changes, for Universal support.
By: lundman on Fri, 08 December 2006 06:34
|
 |
|
Re: Endian specific source changes, for Universal support.
By: mirek on Fri, 08 December 2006 09:25
|
 |
|
Re: Endian specific source changes, for Universal support.
By: lundman on Fri, 08 December 2006 09:32
|
 |
|
Re: Endian specific source changes, for Universal support.
By: mirek on Fri, 08 December 2006 11:12
|
Goto Forum:
Current Time: Mon Jun 30 10:45:18 CEST 2025
Total time taken to generate the page: 0.03324 seconds
|