lkml.org 
[lkml]   [1999]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: gcc/as question
On Thu, Jul 15, 1999 at 04:22:24PM -0700, Kanoj Sarcar wrote:
> specifically, what does the "ax" denote (allocate/executable??)

Yes.

> Under gcc 2.7.2.3, mysection gets aligned to 4 bytes, whereas
> on egcs-1.1.2-12, it gets aligned to 16 bytes on an ia32. My
> code needs to know the alignment, so when I assumed 4 byte
> alignment, my code compiled on gcc works, but not on egcs.

You can't query section alignment. I'm somewhat surprised
you care. My guess is that you are disecting assembly files
and re-assembling them somehow?

> I am trying to figure out if my assumption is wrong, or one of
> gcc or egcs is wrong.

Well it isn't the compilers that are wrong. It is clearly
their perogative to align loop labels and such as they desire.

Recall that you can use the -mfunction-alignment and whatnot
command-line options, though I'd recommend not.


r~

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.053 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site