NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Position of Global directive.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Position of Global directive. (Read 16329 times)
chomwitt
New Member
Posts: 1
Position of Global directive.
«
on:
June 01, 2021, 06:16:14 AM »
In two simple tutorial like hello world asm listings from different books one has the 'global _start' in the start of the code , before any 'section' and the other just after the 'section .text' and before the _start label.
So does it matter where do we place global or its a choice based on readability or convenience?
Logged
Frank Kotler
NASM Developer
Hero Member
Posts: 2667
Country:
Re: Position of Global directive.
«
Reply #1 on:
June 01, 2021, 10:01:58 PM »
Hi chomwitt,
Welcome to the forum.
Your choice, I believe. When in doubt, try it!
Best,
Frank
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Position of Global directive.