This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ASM for symbol references


Hi all.

I'm trying to get gcc to output assembler code for a table with references to 
code segments. I just can't seem to find the right functions to use to output 
the assembler code for (.long <label>). Can someone help?

The assembler code should be similar to the following:

.globl _MYTABLE
	.data
_MYTABLE:
	.long	L1
	.long	L2
	.text
L1:
	...
L2:
	...

Btw. is .long 64-bit compatible?

Casper Hornstrup


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]