Article View: gnu.gcc.help
Article #51966Using symbol names in extended asm macros.
From: James Tsillas
Date: Tue, 02 Mar 1993 18:38
Date: Tue, 02 Mar 1993 18:38
26 lines
1529 bytes
1529 bytes
If someone has experience with extended asm please help.
I'd like to pass symbol arguments to my macros. Currently when I try a
macro of this form:
asm ("call %0" :: "g" (func) : "esp", "ebp", "eax", "ecx",
"edx");
I get:
call $_func
This is _almost_ correct but fails to be recognised by my assembler. I
would like to be able to drop the $ from that instruction to tell the
assembler that I don't know the value. Is there a modifier that help
here. If there a way to use 'call' in an asm macro with a symbol value.
thanks,
-Jim.
--
*** James Tsillas jtsilla@damon.ccs.northeastern.edu ***
*** Work: (508)898-2800, Home: (617)641-0513 ***
*** "He is after me. Jim is after him." ***
*** - Hop on Pop, Dr. Seuss ***
Technical Details
Message-ID:
<JTSILLA.93Mar2133815@damon.ccs.northeastern.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!spool.mu.edu!hri.com!noc.near.net!lynx!random.ccs.northeastern.edu!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,91fd8718106c184c,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-02 14:52:02 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!spool.mu.edu!hri.com!noc.near.net!lynx!random.ccs.northeastern.edu!news From: jtsilla@damon.ccs.northeastern.edu (James Tsillas) Newsgroups: gnu.gcc.help Subject: Using symbol names in extended asm macros. Message-ID: <JTSILLA.93Mar2133815@damon.ccs.northeastern.edu> Date: 2 Mar 93 18:38:15 GMT Sender: news@random.ccs.northeastern.edu Distribution: gnu Organization: Northeastern University, Boston, MA Lines: 26 Nntp-Posting-Host: damon.ccs.northeastern.edu