This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Apple specific options: patch to include them in the currentrelease gcc?
> Hopefully somebody does it. The existing gcc inline syntax is
> powerful, but also extremly easy to get wrong and quite obscure at
> parts and when you look at inline assembly in some random free program
> you often find totally bogus constraints etc or misunderstandings
> how it works. Some simpler alternative that could be safely used without
> too much RTFM and practice and would be very useful for all gcc
> users I think.
One thing to remember is that most compilers (visual C++ I know is like
this and probobly intel C++, OpenWatcom, Code Warrior etc) operate at the
ASM level directly as the last pass and can figure out from studying the
inline ASM itself what registers, local variables, global variables etc etc
it needs to reference.
But GCC isnt able to do this so you have to tell GCC yourself what
resources a given block of inline assembler accesses.