Linux assembly list
 help / color / mirror / Atom feed
* Segmented or Flat model
@ 2007-05-23 22:56 A D
  2007-05-24  2:12 ` Brian Raiter
  0 siblings, 1 reply; 6+ messages in thread
From: A D @ 2007-05-23 22:56 UTC (permalink / raw)
  To: linux-assembly


I need clarification to a particular gnu assembly question. When i write a 
code:

.section .data
output:
   .int 1

.section .text
.globl _start
_start:
   movl $output, %ebx
   ....


here what type of memory model is used for movl statement(flat or 
segmented)?
Also how does movl knows which logical address to use? I mean how do 
variables
get their logical address?

Thanks.

_________________________________________________________________
Fight Allergies With Live Search 
http://search.live.com/results.aspx?q=Remedies+For+Spring+Allergies&mkt=en-ca&FORM=SERNEP


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-24 11:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 22:56 Segmented or Flat model A D
2007-05-24  2:12 ` Brian Raiter
2007-05-24  3:01   ` A D
2007-05-24  4:20     ` Brian Raiter
2007-05-24  5:02     ` Robert Plantz
2007-05-24 11:48       ` A D

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox