Author Topic: Position of Global directive.  (Read 16320 times)

Offline 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?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
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