[cc65] .align and .res

Date view Thread view Subject view

From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2003-05-12 16:37:00


If I define a couple of symbols like this:

	.bss

foo:		.res 4
bar:		.res 4
		.align 256
buffer:		.res 512

Does this create dead space inbetween foo and buffer? If so, does the
linker use that space for other variables? And if I declare several
variables next to eachother (like foo and bar), are they guaranteed to
end up next to eachother in memory (ie is bar == foo+4)?

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp_at_cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-05-12 16:40:11 CEST