From: Groepaz (groepaz_at_gmx.net)
Date: 2003-01-15 01:22:07
On Monday 13 January 2003 18:06, Ullrich von Bassewitz wrote:
> Hi!
>
> On Mon, Jan 13, 2003 at 10:20:21AM +0100, Christian Krüger wrote:
> > Maybe a very silly question, but when I have to use assembler
> > to get aligned memory efficiently , why doesn't work the following
> > (or does it work?):
>
> Because .ALIGN needs the segment to be aligned to that boundary, but BSS
> has an alignment of 1. At least this is how it is currently implemented.
> Groepaz already complained about it (loudly:-), so it may get changed, but
> it's very low priority.
there's a quite easy fix which i am using atm.... just put some padding-bytes
into crt0, so that the "startup" segment ends at an even adress... that way
atleast alignment to even adresses works (with more padding == waste more
memory you can have working page-aligment aswell....etc).
--
___ ___ .___________________ .___________ _______.
c=64 / | \| \__ ___/ \ \_ _____/ \ \ [groepaz]
gb / ' \ | | | / \ / \ | __)_ / | \ gp32
cgb \ . / | | |/ ' \| \/ | \ psx
gba \___|_ /|___| |____|\____|__ /_______ /\____|__ / dc
-----\/-----'---------------\/--------\/---------\/
http://www.hitmen-console.org Hitmen WWW Headquarters
http://fly.to/hitmen-groepaz my personal playground
http://rr.c64.org/silversurfer home of the RR debugger
ftp.musoftware.de/pub/groepaz cc65 dump site
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-01-15 01:21:14 CET