🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52492

How to put local labels in asm() constructs.

#52492
From: James Tsillas
Date: Mon, 06 Jul 1992 02:56
15 lines
1356 bytes
I am writing inline asm constructs for the i386 which make handy use of
some of the architecture's cute tricks. My question: how can I have
inline labels (for use in loops, etc.) which will not conflicts if I use
the macro in more than one place in the same module. Currently I am
thinking of not using labels and calculating the relative offsets for
jmp's instead. Is there a better way?

thanks,
-Jim.
--
***                                                      ***
***  James Tsillas  jtsilla@damon.ccs.northeastern.edu   ***
*** ..see you at Korova Milk Bar brothers and sisters..  ***
***                                                      ***
Technical Details
Message-ID: <JTSILLA.92Jul5215632@dworkin.ccs.northeastern.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!think.com!mintaka.lcs.mit.edu!chaos!random.ccs.northeastern.edu!news

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8a1b57eb08a81641,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-07-08 06:21:19 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!think.com!mintaka.lcs.mit.edu!chaos!random.ccs.northeastern.edu!news
From: jtsilla@dworkin.ccs.northeastern.edu (James Tsillas)
Newsgroups: gnu.gcc.help
Subject: How to put local labels in asm() constructs.
Message-ID: <JTSILLA.92Jul5215632@dworkin.ccs.northeastern.edu>
Date: 6 Jul 92 02:56:32 GMT
Article-I.D.: dworkin.JTSILLA.92Jul5215632
Sender: news@random.ccs.northeastern.edu
Distribution: gnu
Organization: Northeastern University, Boston, MA
Lines: 15