Difference between .comm and .globl + .zerofill
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hello, .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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe