www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/14/16:35:24

Xref: news2.mv.net comp.os.msdos.djgpp:8617
From: fnunez AT cs DOT uct DOT ac DOT za (Fabian Nunez)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: AT&T Syntax FPU Assembly
Date: 14 Sep 1996 15:01:14 GMT
Organization: University of Cape Town
Lines: 37
Message-ID: <51ehbq$38l@groa.uct.ac.za>
References: <51anmi$3tl AT srvr1 DOT engin DOT umich DOT edu>
NNTP-Posting-Host: awabi.cs.uct.ac.za
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019