Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GCC 4.9

45 views
Skip to first unread message

Ben Cassell

unread,
May 6, 2016, 3:51:07 PM5/6/16
to
Hi all,

A student from a past term (Rollen) has graciously offered to make GCC
4.9 available to anyone who wants to try it as an alternative to 4.0.2.


According to Rollen:

If you would like to use GCC 4.9, add the appropriate sub-folders from
"/u/rs2dsouza/arm-none-eabi-gcc/" into your $PATH.

"./bin/" contains gcc, as, ld, objdump etc. The prefix used is
arm-none-eabi.

"./lib/" contains libgcc and CRT-related stuff.

The build only supports core C and libgcc (which means you have access
to modulus). It builds by default for ARM920T, but



Rollen also included some sample Makefile components using this
toolchain. Note that you would need to modify some components
of this (e.g. --entry) to get it working for your own setup:


Contents of Makefile:
-------------------------------------------------

XCC = /u/rs2dsouza/arm-none-eabi-gcc/bin/arm-none-eabi-gcc
AS = /u/rs2dsouza/arm-none-eabi-gcc/bin/arm-none-eabi-as
LD = /u/rs2dsouza/arm-none-eabi-gcc/bin/arm-none-eabi-ld
CP =
DM = /u/rs2dsouza/arm-none-eabi-gcc/bin/arm-none-eabi-objdump

OUT = t2.elf
HRDWR = ts7200

CFLAGS = -fPIC -O3 -Wall -Werror -nostdlib -nostartfiles -ffreestanding
-I. -mcpu=arm920t -msoft-float -DTARGET_TS7200
LDFLAGS = -Map bin/main.map -N -T make/loadmap.ld
-L/u/rs2dsouza/arm-none-eabi-gcc/lib/gcc/arm-none-eabi/4.9.0 --entry 0x50000
LDLIBS = -lgcc
ASFLAGS = -mcpu=arm920t -mapcs-32

ts7200_install: $(OUTDIR)/$(OUT)
cp $< /u/cs452/tftp/ARM/$(LOGNAME)

Theo Belaire

unread,
May 6, 2016, 7:38:46 PM5/6/16
to
Does anyone have details on the setup for gcc 4.9?

Theo Belaire

unread,
May 6, 2016, 8:06:33 PM5/6/16
to
On Friday, 6 May 2016 19:38:46 UTC-4, Theo Belaire wrote:
> Does anyone have details on the setup for gcc 4.9?

Ignore this, I didn't see this post when I posted. I'm not sure how it ended up as a reply without loading the initial message first.

Theo Belaire

unread,
May 7, 2016, 12:29:11 AM5/7/16
to
Key things to change if you want to make minimal modifications to your makefile.

Make sure you modify LDFLAGS to replace

/u/wbcowan/gnuarm-4.0.2/lib/gcc/arm-elf/4.0.2
with
/u/rs2dsouza/arm-none-eabi-gcc/lib/gcc/arm-none-eabi/4.9.0

and remove the -nostartfiles and -ffrestandings flags, but keep -nostdlib.

0 new messages