A compiler transforms code written in a source language to a (binary) target language.
Questions tagged [compiler]
127 questions
39
votes
13 answers
ARM Cortex-M3 development tools?
I am planning to migrate to the NXP Cortex M3 architecture and I'm a little lost between the existant development tools.
Keil is expensive and I don't know if it's worth it.
Anyone who has tried some compiler can give any advice?
I found this…

mba7
- 902
- 1
- 9
- 13
31
votes
9 answers
What is the process of going from machine code to electrically controlling individual transistors?
For someone who writes software but doesn't have a computer engineering background, the dozens of abstraction layers have always bewildered me.
I know all source code in their most fundamental level is broken down into 1s and 0s. I also know all…

master_of_privates
- 445
- 4
- 6
24
votes
7 answers
What do HDLs compile/synthesize to?
I'm a software engineer. As a programmer, I have an understanding of what my compiler does for me because I've manually written a close textual representation of what it outputs (e.g. assembly). For precise details of what's output I can look at the…

Jake
- 351
- 2
- 5
19
votes
5 answers
Is Code Sourcery G++ Lite still a viable project?
When I tried to download a newer version of Code Sourcery G++ Lite for ARM,
I noticed that I was redirected to another company and it is really hard to find anything on that site about Sourcery G++ Lite for ARM.
Does anybody know the status on the…

Johan
- 2,385
- 2
- 25
- 27
17
votes
12 answers
Could you program a microcontroller without a computer?
Let's say you had a rather simple and small microcontroller and had no interfacing, no computer, no debugger, compiler, or assembler. Could you write your code in assembly, convert it (manually) to machine code, and then apply power to the…

idle_engineer
- 317
- 2
- 5
13
votes
2 answers
Compiling code to run from external RAM
I am considering designs for a minimalist game system based on a PIC18F85J5. Part of my design is that games can be loaded from an SD card without reprogramming the chip or flashing the program memory. I chose that chip because it has an external…

captncraig
- 2,054
- 3
- 24
- 45
13
votes
2 answers
How can I use a build server with Keil uVision4 (MDK-ARM), script a build, use a makefile?
I would like run daily builds, or check-in/commit triggered builds of Keil MDK-ARM based projects. So far I've gotten things going with the batch file feature of the IDE. This does require you to build the project at least once with the IDE, then…

rmaVT
- 211
- 2
- 7
12
votes
2 answers
What is 'unsigned char near'?
I read a datasheet and I found variable defined as unsigned char near Sample_X. What is this, and how does this differ from unsigned char Sample_X?

oppo
- 537
- 1
- 7
- 22
11
votes
1 answer
PIC18F4550 C-compiler that's open-source & cross-platform?
I'm a long time AVR user. I really like that AVR-GCC works on the two main OSes I use (Mac OS X and Linux), is open-source, and is supported by Atmel. I'd like to get back into PIC programming (used them in the 90s) since there are some pretty…

todbot
- 4,616
- 23
- 26
11
votes
3 answers
How to discover memory overflow errors in the Arduino C code?
Several times I had some suspicious outputs on the Serial Monitor after uploading code to the Arduino: like eternal output of whitespaces or suddenly cut of strings or scrambled strings.
Because there was no compile error or warning in the Arduino…

powtac
- 1,022
- 2
- 16
- 27
11
votes
3 answers
Programming for the Arduino without the Arduino IDE.. but with the provided libraries?
I recently started a new project using my Arduino that's been collecting dust for a while. Along with the physical board collecting dust, so has my copy of avr-gcc and the Arduino libraries. I can manage updating avr-gcc, but I can't remember how I…

Earlz
- 3,346
- 15
- 46
- 66
10
votes
1 answer
Why is synthesis so slow compared to compilation?
Even simple HDL designs takes hours to synthesize, while compiling the Linux kernel on the same machine completes in under 15 minutes. Please explain why with a breakdown of the tasks the synthesizer has to carry out.

Björn Lindqvist
- 247
- 1
- 8
9
votes
5 answers
PIC 16F beginner.. difference in program-syntax when using different compilers
As I mentioned, I have just beginned programming pic16f877a. I can now work with 7 segment displays. At present I am using ccs compiler. Nothing wrong with that. But i prefer to be a compiler independent programmer. So i simultaneously want to work…

V V Rao
- 1,136
- 3
- 19
- 32
9
votes
5 answers
ATTiny13 -- avr-gcc Hello World uses over 100 bytes?
I'm trying to write a program for the ATTiny13. My problem is that it has huge size constraints. Well, when making my first Hello World program, it took 100 bytes of program space just to make a light turn on and off! Are there any options I can…

Earlz
- 3,346
- 15
- 46
- 66
9
votes
8 answers
Best way to install arm-elf-gcc onto a Linux machine
Hey folks,
I'm working on a device using arm-elf-gcc to compile code for a MakingThings prototype board. My development machine is a Linux box running Ubuntu 9.10. On a different linux box using Ubuntu I got arm-elf-gcc running ok by manually…

Far McKon
- 151
- 1
- 2
- 3