View Single Post
Old 03 October 2011, 12:54   #21
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,265
Quote:
Originally Posted by StingRay View Post
What I wrote is completely correct. The question was about ds.b vs. dcb.b and what happens to the executable size. That there are lots of other ways to deal with hunks is irrevelant here.
Except that it's not correct.

AmigaOS has always had support for uninitialized space in executables not just as BSS (the correct meaning is Block Started by Symbol) but after any code and data as well.

Corresponding source and 48 byte executable below, try it yourself and check memory usage while it's running.
Code:
wait   btst   #6, $bfe001
       bne    wait
       rts

       ds.b   1000000
Attached Files
File Type: txt test.exe.txt (48 Bytes, 182 views)
Leffmann is offline  
 
Page generated in 0.06968 seconds with 12 queries