#22735 - booger - Mon Jun 28, 2004 7:58 am
Is there anyone who has gotten the GAS .incbin directive function properly?
#22751 - wintermute - Mon Jun 28, 2004 7:15 pm
yes.
You need devkitARM for that one though
#22761 - booger - Mon Jun 28, 2004 9:23 pm
ahh..darn, i'm too lazy to change my dev-environment now..
#22775 - wintermute - Tue Jun 29, 2004 7:17 am
booger wrote: |
ahh..darn, i'm too lazy to change my dev-environment now.. |
well if you're doing things right then it's a straight swap, most people manage in a couple of minutes. DevkitARM is pretty much the same but more up to date and windows friendly.
#22781 - booger - Tue Jun 29, 2004 9:19 am
ok, then i'll give it a try; .incbin is such a great feature!
#22787 - ProblemBaby - Tue Jun 29, 2004 10:17 am
Is my problem the same??
When I use incbin I get this error when I try to compile:
Error: Unknown pseudo-op: `.incbin'
#22810 - booger - Tue Jun 29, 2004 10:05 pm
ProblemBaby wrote: |
Is my problem the same??
When I use incbin I get this error when I try to compile:
Error: Unknown pseudo-op: `.incbin' |
i don't think you're having the same problem. when i tried to use .incbin the assembler/compiler told me that the file was padded and not entirely read.
are you sure you're using .incbin in an assembler-file with this syntax:
.incbin "myfile.bin"
#22818 - ProblemBaby - Tue Jun 29, 2004 10:48 pm
Yes my asm file looks like this:
Code: |
.global LogoGFX
.global LogoMAP
.global LogoPAL
.TEXT
LogoGFX:
.incbin "Logo.gfx"
LogoMAP:
.incbin "Logo.map"
LogoPAL:
.incbin "Logo.pal"
|
#22846 - booger - Wed Jun 30, 2004 12:49 pm
how strange. which compiler-package are you using?
anyhow - upgrade to devkitarm and that would probably not be a problem anymore..
#22848 - wintermute - Wed Jun 30, 2004 1:29 pm
booger wrote: |
ProblemBaby wrote: | Is my problem the same??
When I use incbin I get this error when I try to compile:
Error: Unknown pseudo-op: `.incbin' |
i don't think you're having the same problem. when i tried to use .incbin the assembler/compiler told me that the file was padded and not entirely read.
are you sure you're using .incbin in an assembler-file with this syntax:
.incbin "myfile.bin" |
can you give me a shout if you get the same problem with devkitARM?
#22849 - ProblemBaby - Wed Jun 30, 2004 1:46 pm
Yes it works thanks
But I wonder what is the difference
between devkitadv and devkitarm?
then I wonder why
I got a lot of
packed attribute ignored
My makefile look something like this:
@arm-elf-gcc -nostartfiles -Wall -mcpu=arm7tdmi -ffreestanding -fpeephole -fomit-frame-pointer -fverbose-asm -mthumb-interwork -Wl,-T lnkscript -O2 -o Game.elf <here are all files>
I dont know what the most of the settings do but can the packed-thing have something to do with this?
#22852 - wintermute - Wed Jun 30, 2004 2:56 pm
ProblemBaby wrote: |
Yes it works thanks
|
well, I meant Booger's problems :)
Quote: |
But I wonder what is the difference
between devkitadv and devkitarm?
|
devkitARM is a lot closer to the FSF sources and is currently using the latest stable releases of all the packages.
Quote: |
then I wonder why
I got a lot of
packed attribute ignored
My makefile look something like this:
@arm-elf-gcc -nostartfiles -Wall -mcpu=arm7tdmi -ffreestanding -fpeephole -fomit-frame-pointer -fverbose-asm -mthumb-interwork -Wl,-T lnkscript -O2 -o Game.elf <here are all files>
I dont know what the most of the settings do but can the packed-thing have something to do with this? |
this one could be related to the -fverbose-asm switch, I can't be sure without seeing the warning output from your compile.
Ideally it would help if you could put together a minimal test case which shows the problem you're having.
#22854 - booger - Wed Jun 30, 2004 3:42 pm
yo wintermute! - everything works just fine! the .incbin makes my day, and the rest of the package seems stable and well put-together! thanks!
#22867 - ProblemBaby - Wed Jun 30, 2004 5:45 pm
Aha it was a bit confusing=)
I took away the verbose mode but no difference=/
But...
First of all it wasnt many=) it was three to be exact the file was included
in many other files so it looked like damn much.
It was in a krawall file that have three structures that looks like this:
Code: |
typedef __attribute__ ((packed)) struct {
//stuff
} Sample;
|
I dont really know what the __attribute__ ((packed)) thing do so I dont know what the consequenses (how is it spelled???) will be.