This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compiling programs for ARM ?
- From: Jason White <whitewaterssoftwareinfo at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 4 Mar 2012 13:38:02 -0500
- Subject: Compiling programs for ARM ?
- Authentication-results: mr.google.com; spf=pass (google.com: domain of whitewaterssoftwareinfo@gmail.com designates 10.216.134.233 as permitted sender) smtp.mail=whitewaterssoftwareinfo@gmail.com; dkim=pass header.i=whitewaterssoftwareinfo@gmail.com
Short Version: Hello, I'm trying to get started with an ARM processor with
the GCC compiler. Does anyone have any tips as for getting compiled
programs to run on the target processor ? (Can you just plop the output
of gcc straight into an arm processor ?)
-
Long Version: I have a STM32F103 processor on a development board,
I am trying to get my compiled programs to run on it. However all it does
is play dead with GCC's output. I am using the `arm-linux-gnueabi`
package from the ubuntu repository.
I have a very simple program that is supposed to toggle 2 IO lines, when
compiled it is about 50kbytes and is about 90% empty space (mostly 0's).
I suspect that I am not compiling with the right options so I am posting
here for help.
Compiling with: -s -Os -mthumb -mcpu=cortex-m3
Code: https://docs.google.com/open?id=0BwP0qhqyaTIIcktzWVcxS0JRNEM0Z1BhS0tlT0pyZw
Any suggestions would be appreciated.
--
Jason White