views:

39

answers:

2

What are the alignment of sections and memory within an EXE file I need to specify when creating using in the Mosa IL compiler?

Thanks.

+1  A: 

It's typically the same as the page size, 4K for most CPUs.

wallyk
A: 

The sections within the PE file must be aligned on 4k boundaries.

You can involve the MOSA compiler properly like this:

mosacl.exe -a=x86 -f=PE --pe-file-alignment=4096 --map=hello.map -b=mb0.7 -o hello.exe 
tgiphil