[fpc-devel] fpc AVR32

Michel Catudal mcatudal at comcast.net
Wed Oct 24 22:48:45 CEST 2012


Le 24/10/2012 15:22, Jeppe Græsdal Johansen a écrit :
>
> PC relative word loads aren't aligned automatically, and due to the variable instruction length such an instruction might end up on a halfword boundary. I have no clue how to fix it in a simple way. LDDPC has a very small allowable offset

Are you doing your own assembler or what? Shouldn't the assembler handle that alignment?

When I created the binary I used the Atmel avr32 assembler, the one generated with the patches given by Atmel and not one that would be generated by fpc makefiles if there is any.
I saw some mention of generating an assembler there but didn't investigate. It didn't seem to make sense to try to reinvent the wheel.


[michel at catudal travail]$ avr32-as --version
GNU assembler (Catudal Software) 2.22
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `avr32'.

My assembler is just a compilation of one of the latest binutils using some of Atmel's latest patches.

I had to create a link so fpc would find the assembler as it uses a name of an assembler that doesn't exist.

I didn't like the name choosen for fpc so I created a link for a name that would be more in line with my other compilers and assemblers

To me it makes more sense

-rwxr-xr-x 2 root root  290400 17 janv.  2012 /usr/bin/pic32mx-gcc
-rwxr-xr-x 1 root root 1471419 17 janv.  2012 /usr/bin/pic32mx-as
-rwxr-xr-x 2 root root  600662 11 mai   21:50 /usr/bin/avr32-gcc
-rwxr-xr-x 1 root root 1106875 11 mai   19:19 /usr/bin/avr32-as
lrwxrwxrwx 1 root root       8  7 oct.  15:54 /usr/bin/avr32-embedded-as -> avr32-as

-rwxr-xr-x 2 root root 1718149 19 janv.  2012 /usr/bin/v850-elf-gcc
-rwxr-xr-x 1 root root 929315 19 janv.  2012 /usr/bin/v850-elf-as
-rwxr-xr-x 2 root root 617763 18 janv.  2012 /usr/bin/mips-sde-elf-gcc
-rwxr-xr-x 1 root root 1560458 17 janv.  2012 /usr/bin/mips-sde-elf-as

lrwxrwxrwx 1 root root      12 23 oct.  09:39 /usr/bin/avr32-fpc -> ppcrossavr32


Michel

-- 
For Linux Software visit
http://home.comcast.net/~mcatudal




More information about the fpc-devel mailing list