Difference between .comm and .globl + .zerofill
Difference between .comm and .globl + .zerofill
- Subject: Difference between .comm and .globl + .zerofill
- From: Jonas Maebe <email@hidden>
- Date: Wed, 20 Jul 2005 17:35:42 +0200
Hello,
I asked this question a while ago on Xcode-users but didn't get a
reply. Maybe someone here knows the answer?
What is the practical difference between the following two
(assembler) declarations, apart from the fact that the former cannot
be used in dynamic libraries and the latter can be? (because in one
case the data resides in the text section and in the other in the
data section). Is there a reason not to always use the latter form?
.text
.align 2
.comm _a, 4
and
.globl _a
.data
.zerofill __DATA, __common, _a, 4, 2
Thanks,
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden