public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Assembler clarification
@ 2006-06-01 17:42 jacob navia
  0 siblings, 0 replies; only message in thread
From: jacob navia @ 2006-06-01 17:42 UTC (permalink / raw)
  To: GCC Mailing List

I can't explain myself what is going on within this lines in
the .debug_frame section.

Context: AMD64 linux64 system. (Ubuntu)

Within the debug_frame section I find the following assembly instructions:
    .byte    0x4
    .long    .LCFI0-.LFB2

The distance between labels LCFI0 and LFB2 is exactly one byte.

I would expect then, that the assembler generates
    0x04 (byte 1)
    0x01 (byte 2)

i.e. TWO bytesw, one with 4 and the other with 1.

but I find that the output is 0x41, i.e. the 4 in the highest
NIBBLE of a byte and the 1 in the lower nibble.

Why?

Is this documented somehow?

Is there a compressing pass in the debug_frame section ????


thanks

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-01 17:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-01 17:42 Assembler clarification jacob navia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).