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