home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / sysv386 / 16666 < prev    next >
Encoding:
Text File  |  1992-11-20  |  2.2 KB  |  52 lines

  1. Newsgroups: comp.unix.sysv386
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsi!cbnewsh!att-out!cbnewsj!dwex
  3. From: dwex@cbnewsj.cb.att.com (david.e.wexelblat)
  4. Subject: Re: ESIX 4.0.4 in-line assembly in c
  5. Organization: AT&T
  6. Date: Fri, 20 Nov 1992 23:36:17 GMT
  7. Message-ID: <1992Nov20.233617.14037@cbnewsj.cb.att.com>
  8. References: <1ejapiINN4cs@agate.berkeley.edu>
  9. Lines: 41
  10.  
  11. In article <1ejapiINN4cs@agate.berkeley.edu> jef@diva.Berkeley.EDU (Jay Fleischman) writes:
  12. > Hi unix people!
  13. > I would like to do some in-line assembly in a small portion of my C - code
  14. > program.  I would also like information about the syntax etc. of 
  15. > assembly routines and linking them with c programs.
  16. > I've asked tech support at ESIX, and they say they know nothing about
  17. > it, and don't know in which manual I could look (actually, they said
  18. > it's not there, and they have no reference either)
  19. > PLEASE, anyone who has done this, could you tell me?  If there is a
  20. > good reference that you might recommend, what is it?  I had hoped to be
  21. > able to use the symbolic variable names etc. in the assembly.  Perhaps
  22. > one of those excellent X386/XFree people have done some of this?  I
  23. > understand that there were some binary routines written to improve the
  24. > speed...
  25. > Please email your response to jef@swordfish.berkeley.edu  or post.
  26. > Thanks alot.
  27. > Jay Fleischman
  28.  
  29. Yes, we have done this.  Boy have we done this :->  The jokers at ESIX
  30. have no idea what they are talking about.  The manual you want is
  31. "Programmer's Guide: ANSI C and Programming Support Tools" from the
  32. Prentice Hall SVR4 manual set.  There's a big section on how to do
  33. inline assembler with the SGS in SVR4.
  34.  
  35. The other option is to use GCC2, which a) generates better code, and b)
  36. uses an in-line assembler syntax that will be portable to other OS's
  37. (on Intel of course) that use GCC2.  You can get GCC2 from prep.ai.mit.edu
  38. or any of its shadows.
  39.  
  40. --
  41. David Wexelblat <dwex@mtgzfs3.att.com>  (908) 957-5871
  42. AT&T Bell Laboratories, 200 Laurel Ave - 4B-421, Middletown, NJ  07748
  43.  
  44. "The meaning of life?  That's simple.  Try to be happy, try not to hurt
  45.  other people, and hope to fall in love."  -- Mallory Keaton
  46.