Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Compile for 32bit ARM target on 64bit Ubuntu
Compile for 32bit ARM target on 64bit Ubuntu [message #1754989] Sat, 25 February 2017 05:00 Go to next message
Silas Valera is currently offline Silas ValeraFriend
Messages: 1
Registered: February 2017
Junior Member
Hi All,
This is the first time here Smile

I am running Neon2 on Ubuntu 64bit 16.04LTS. I have installed arm-linux-gnueabi and I can build a sample HelloWorld using cross-compile without any issue.
But I need to build for a 32 bit target board. I tried using -m32 option but it throws an error.

Anyone has similar setup? what settings do I need on my Neon?

Thanks
Silas
Re: Compile for 32bit ARM target on 64bit Ubuntu [message #1755057 is a reply to message #1754989] Mon, 27 February 2017 16:17 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 416
Registered: June 2014
Senior Member
Hi Silas,

Can I recommend heading over to http://gnuarmeclipse.github.io/ it has lots of documentation on how to build for ARM using Eclipse. They even have extensions to CDT allowing easier use of ARM toolchains.

Sadly I don't have an answer to your specific question, so hopefully gnuarmeclipse can help.

Jonah
Re: Compile for 32bit ARM target on 64bit Ubuntu [message #1755796 is a reply to message #1755057] Wed, 08 March 2017 09:21 Go to previous message
Alex Freidin is currently offline Alex FreidinFriend
Messages: 32
Registered: July 2009
Member
Building for ARM doesn't use the -m32 option. GCC accepts either -mcpu=[target] or -march=[arch].
https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/ARM-Options.html
Previous Topic:Live view variable debug
Next Topic:Extending Embedded Target Debug Register View
Goto Forum:
  


Current Time: Tue Mar 19 11:01:39 GMT 2024

Powered by FUDForum. Page generated in 0.02495 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top