From mboxrd@z Thu Jan 1 00:00:00 1970 From: "A D" Subject: Segmented or Flat model Date: Wed, 23 May 2007 18:56:31 -0400 Message-ID: Mime-Version: 1.0 Return-path: Sender: linux-assembly-owner@vger.kernel.org List-Id: Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-assembly@vger.kernel.org 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