View unanswered posts | View active topics It is currently Thu Sep 09, 2010 12:09 pm



Reply to topic  [ 124 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 13  Next
GCC compiler development for S12X 
Author Message
LQFP144 - On Top Of The Game

Joined: Mon Feb 11, 2008 9:52 pm
Posts: 304
Location: Arizona
Post Re: GCC compiler development for S12X
First bug LOL. Seems some macro adjustments are needed.

seank@mob-sean:~/work/workspaceCDT/binutils-mc9s12x/build-testing/testing/mc9$ make
mc9s12x-elf-as --gstabs -o main.o main.s

IN MD_BEGIN

seize of root structure 16
size of opcodes 575

yes -mc9s12x_opcodes[i].arch & current_architecture- is true

number of OPcodes 618
done building table
make: *** [main.o] Segmentation fault
make: *** Deleting file `main.o'


Tue Mar 02, 2010 10:16 pm
Profile YIM
Moderator
User avatar

Joined: Tue Jan 15, 2008 1:31 pm
Posts: 4222
Post Re: GCC compiler development for S12X
Stick to it! :-)

_________________
DIYEFI.org, where Open Source means Open Source, and Free means Freedom
Everything in moderation including moderation!
http://www.opensource.org/licenses/
My other project (DSL beware)
Disclaimer


Thu Mar 04, 2010 1:44 am
Profile WWW
LQFP144 - On Top Of The Game

Joined: Mon Feb 11, 2008 9:52 pm
Posts: 304
Location: Arizona
Post Re: GCC compiler development for S12X
number of OPcodes 618 should be 599 in s12 mode, but its better than a segfault lol :)

mc9s12x-elf-as --gstabs -o main.o main.s

IN MD_BEGIN

seize of root structure 16
size of opcodes 576

Current arch is 4

yes -mc9s12x_opcodes[i].arch & current_architecture- is true, value is 4

number of OPcodes 618
done building table

done sorting

at end of MD_BEGIN


Thu Mar 04, 2010 11:19 pm
Profile YIM
LQFP144 - On Top Of The Game

Joined: Mon Feb 11, 2008 9:52 pm
Posts: 304
Location: Arizona
Post Re: GCC compiler development for S12X
Not too shabby............... I need to run a few disasm tests then the fun should start(adding actual xgate stuff).

Quote:
seank@mob-sean:~/work/workspaceCDT/binutils-mc9s12x/build-testing/testing/hc11$ m68test-elf-readelf test.elf -a
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Motorola M68HC12
Version: 0x1
Entry point address: 0x0
Start of program headers: 52 (bytes into file)
Start of section headers: 4368 (bytes into file)
Flags: 0x22
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 2
Size of section headers: 40 (bytes)
Number of section headers: 8
Section header string table index: 5


Quote:
seank@mob-sean:~/work/workspaceCDT/binutils-mc9s12x/build-testing/testing/mc9$ mc9s12x-elf-readelf test.elf -a
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Freescale S12X
Version: 0x1
Entry point address: 0x0
Start of program headers: 52 (bytes into file)
Start of section headers: 4368 (bytes into file)
Flags: 0x22
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 2
Size of section headers: 40 (bytes)
Number of section headers: 8
Section header string table index: 5


"Machine: Freescale S12X" I like it :)


Mon Mar 08, 2010 6:53 pm
Profile YIM
LQFP144 - On Top Of The Game

Joined: Mon Feb 11, 2008 9:52 pm
Posts: 304
Location: Arizona
Post Re: GCC compiler development for S12X
It seems the clone is working well, the s19 files are the same.

seank@mob-sean:~/work/workspaceCDT/binutils-mc9s12x$ time ./patch.sh
real 0m37.495s
user 0m1.220s
sys 0m2.088s

"The attachment’s file size is too large, the maximum upload size is 2 MB.
Please note this is set in php.ini and cannot be overridden." up the limit Fred :) (yeah there was that much code)

http://computer-ss.com/files/mc9s12x-3-10-10.patch


Image

Now back to it.................


Wed Mar 10, 2010 5:41 pm
Profile YIM
Moderator
User avatar

Joined: Tue Jan 15, 2008 1:31 pm
Posts: 4222
Post Re: GCC compiler development for S12X
seank wrote:
"The attachment’s file size is too large, the maximum upload size is 2 MB.
Please note this is set in php.ini and cannot be overridden." up the limit Fred :) (yeah there was that much code)

Nah, get it into github so we can watch your work as it happens ;-) tar balls of code are near useless IMO. You *may* even be able to find a old fork of that version to grab and patch away from?

Fred.

_________________
DIYEFI.org, where Open Source means Open Source, and Free means Freedom
Everything in moderation including moderation!
http://www.opensource.org/licenses/
My other project (DSL beware)
Disclaimer


Wed Mar 10, 2010 11:46 pm
Profile WWW
LQFP144 - On Top Of The Game

Joined: Mon Feb 11, 2008 9:52 pm
Posts: 304
Location: Arizona
Post Re: GCC compiler development for S12X
I thought about doing that a while back........ Now that the ball is moving pretty good...........
At 118MB its a good thing they upped the limit. :)


Thu Mar 11, 2010 1:03 am
Profile YIM
Moderator
User avatar

Joined: Tue Jan 15, 2008 1:31 pm
Posts: 4222
Post Re: GCC compiler development for S12X
Is that the entire GCC or just the files required for the s12x bit or what? Maybe you can git just a subset of it instead? only if it really really makes sense, though.

Fred.

_________________
DIYEFI.org, where Open Source means Open Source, and Free means Freedom
Everything in moderation including moderation!
http://www.opensource.org/licenses/
My other project (DSL beware)
Disclaimer


Thu Mar 11, 2010 4:14 am
Profile WWW
LQFP144 - On Top Of The Game

Joined: Mon Feb 11, 2008 9:52 pm
Posts: 304
Location: Arizona
Post Re: GCC compiler development for S12X
GCC is about 350MB untared. Binutils is about 118MB.
I suppose at least binutils could be slimmed down a bit by stripping non s12x files out of it and gcc by stripping non C files from it, but that would only set things further back at this point. Good idea though, when we can call it a done job it would be good form.


Thu Mar 11, 2010 3:02 pm
Profile YIM
LQFP144 - On Top Of The Game

Joined: Mon Feb 11, 2008 9:52 pm
Posts: 304
Location: Arizona
Post Re: GCC compiler development for S12X
Counting objects: 10258, done.
Compressing objects: 100% (9873/9873), done.
Writing objects: 100% (10258/10258), 23.29 MiB | 136 KiB/s, done.
Total 10258 (delta 1291), reused 0 (delta 0)
To git@github.com:seank/Binutils-For-FreeScale-s-s12x.git
* [new branch] master -> master

Not bad at all!

http://github.com/seank/Binutils-For-FreeScale-s-s12x


Thu Mar 11, 2010 3:21 pm
Profile YIM
Display posts from previous:  Sort by  
Reply to topic   [ 124 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 13  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by ST Software for PTF.