NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: chomwitt on June 01, 2021, 06:16:14 AM

Title: Position of Global directive.
Post by: chomwitt 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?
Title: Re: Position of Global directive.
Post by: Frank Kotler 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