This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ASM constrains
- To: egcs at cygnus dot com
- Subject: ASM constrains
- From: Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>
- Date: Mon, 31 Aug 1998 23:59:17 +0200
Hi
After quick look at Bernd's patch sent to linux-kernel and some of my
succesfull attempts to crash compiler by incorrect asm contstrains, I am
quite well temped to make some patch for syntatic (and minimal
semantic IE for collisions) checking of them. Incorrect asm statements are so
common...
This should avoid many strange bugs and headaches...
but first question is.. does anyone know the correct syntax?
After looking at docs and sources, I still have some points, where I am
unsure and I was really surprised, that you cant write something like this:
:/*no output*/
:"a"(parameter)
:"ax"
wich was so common in the kernel sources...
Can I use existing machine description to generate syntax of architecture
depended parts? (It should be probably quite easy to get letters for
registers, but is there some more complex parts?)
Any ideas?
Honza
--
OK. Lets make a signature file.
+-------------------------------------------------------------------------+
| Jan Hubicka (Jan Hubi\v{c}ka in TeX) hubicka@freesoft.cz |
| Czech free software foundation: http://www.freesoft.cz |
|AA project - the new way for computer graphics - http://www.ta.jcu.cz/aa |
| homepage: http://www.paru.cas.cz/~hubicka/, games koules, Xonix, fast |
| fractal zoomer XaoS, index of Czech GNU/Linux/UN*X documentation etc. |
+-------------------------------------------------------------------------+