realbasic-betas.mbox
[Top] [All Lists]

Re: runtime failure

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: runtime failure
From: "Theodore H. Smith" <delete at softhome dot net>
Date: Sun, 29 Dec 2002 16:09:51 +0000
The compiler deals with this by inserting pad bytes after the one-byte
boolean to ensure that the next variable starts on an appropriate 4-byte address. Thus, a one-byte boolean variable accounts for four bytes of global
data.

Maybe someday the linker will be able to sort booleans together and thus
eliminate the padding...

Yes, that is what I meant. Not 4 aligned addresses I know are awkward for computers, but bools can be put next to each other just fine. I don't think reading 1 char from the RAM is any slower at non aligned addresses than aligned addresses.

--
    Theodore H. Smith - Macintosh Consultant / Contractor.
    My website: <www.elfdata.com/>


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.


<Prev in Thread] Current Thread [Next in Thread>