LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-02-2010, 03:08 AM   #1
fairuz.ismail
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Rep: Reputation: 0
toolchain for ARM7 and ARM9


Hi,
I just have a little confusion. Is there any difference between an ARM7 toolchain and an ARM9 toolchain? Or is it all ARM toolchain can be used to compile for these different processors.

Thanks,

Kind regards,
Fairuz
 
Old 07-02-2010, 03:27 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by fairuz.ismail View Post
Hi,
... Is there any difference between an ARM7 toolchain and an ARM9 toolchain? ...
The two CPU architectures are different in their instruction sets and thus sets of library functions, so the same toolchain can be quite sufficient provided you can tell the compiler which object code to produce and the linker which libraries to use.

I guess any reasonable toochain has these features.
 
Old 07-02-2010, 03:45 AM   #3
fairuz.ismail
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for the quick reply. I have another question though.
I see that to build an ARM toolchain we need binutils, gcc, newlib and insight. How come with these tools we create an ARM toolchain? Because from what I understand, these tools is not ARM specific.
Thanks!
 
Old 07-02-2010, 03:51 AM   #4
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by fairuz.ismail View Post
How come with these tools we create an ARM toolchain? Because from what I understand, these tools is not ARM specific.
They are not themselves ARM-specific, but you need them to build any (gcc) toolchain. When you compile it, you make it ARM-specific.
 
Old 07-02-2010, 04:00 AM   #5
fairuz.ismail
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks, now i understand it better.
Right now i tried to compile ARM code in window with the help of cygwin, gnuarm and code::block. I use the precompiled version of the gnuarm available on their site. But I've got this error when tried to compile:

undefined reference to _sbrk

After a research through the net, I found that it's a problem with the syscall of the newlib. So I found a solution that need me to recompile the newlib with --disable-newlib-supplied-syscalls option.

So from what I understand, I just need to recompile the toolchain myself and use it to compile my arm codes. Is that correct? I'm not so sure the exact steps, if someone had done this before that would be great.

P/S : I cannot download newlib 1.17 from this site ftp://sources.redhat.com/pub/newlib/...-1.17.0.tar.gz . Is there any other repo than this?

Thanks for your time.

Kind regards,
Fairuz
 
Old 07-02-2010, 04:08 AM   #6
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by fairuz.ismail View Post
thanks for the quick reply. I have another question though.
I see that to build an ARM toolchain we need binutils, gcc, newlib and insight. How come with these tools we create an ARM toolchain? Because from what I understand, these tools is not ARM specific.
Thanks!
Look up on the WEB

cross compiling
cross compilation

- you will understand the concepts after reading the material.

FWIW, building, say, Windows applications under Linux (yes, it is possible) is also cross-compilation.
 
  


Reply

Tags
arm7, arm9, toolchain


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
uClinux kernel image for ARM7 processor systeme2 Linux - Newbie 0 04-28-2009 05:59 AM
Developing networked applications with RTLinux that runs on ARM7 based board arjean Linux - Hardware 1 12-21-2008 06:38 AM
Developing networked applications with RTLinux that runs on ARM7 based board arjean Linux - Networking 0 12-16-2008 03:43 AM
Complete ARM7 programming+debugging solution fireball003 Linux - Software 0 04-17-2007 09:43 AM
Building an ARM7 cross compiler from gcc Charlie_B Linux - Software 2 08-20-2003 08:59 AM


All times are GMT -5. The time now is 12:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration