Mail Archives: djgpp/1996/09/14/16:35:24
In <51anmi$3tl AT srvr1 DOT engin DOT umich DOT edu> dbarrett AT piano DOT engin DOT umich DOT edu (David M Barrett) writes:
>I'm really getting into assembly with DJGPP, and I'm a fan of AT&T syntax
>and all, but is there any information on how to use the FPU with AT&T
>syntax? I did a gcc -s xxxx.c on one of my files that uses floating
>point math and was blown away by the number of opcodes that I just didn't
>recognize. I've been reading up on normal FPU opcodes, and I couldn't
>even guess what some of the AT&T opcodes do. Does anyone know where I
>could find more information? I've scanned the web and the DJGPP FAQ and
>site to no avail. Thanks!
>-David :)
>--
>-----------------------------------------------------------------------------
> David M. Barrett :) | University of Michigan / CAEN Hotline
> dbarrett AT engin DOT umich DOT edu | http://www-personal.engin.umich.edu/~dbarrett
>-----------------------------------------------------------------------------
OK, this is probbly a bit of a kludge, but isn't reverse engineering always?
1. Make a short tasm source file containing a few instructions you want to
check the AT&T syntax for
2. Compile the sucker
3. Use the emxaout program from ftp.scitechsoft.com to convert the .obj
file into a .o file
4. Use objdump --disassemble to convert the .o file into a .S file
OK, I haven't really tried this myself but I see no reason why it shouldn't
work ;)
Fabian
--
Fabian Nunez, Bachelor of Computer Science, University of Cape Town
email:fnunez AT cs DOT uct DOT ac DOT za web: http://www.cs.uct.ac.za/~fnunez
----------------------------------------------------------------
Any technology distinguishable from magic is insufficiently advanced
- Raw text -