Skip to main content
13 events
when toggle format what by license comment
Jun 23, 2018 at 2:45 history tweeted twitter.com/StackElectronix/status/1010353040875024385
S Jun 22, 2018 at 18:22 history suggested Jim Fell
added tag arm
Jun 22, 2018 at 16:30 review Suggested edits
S Jun 22, 2018 at 18:22
Mar 14, 2017 at 8:50 vote accept Arun Joe Cheriyan
Jan 20, 2017 at 18:38 comment added tcrosley Several different schemes are discussed in the answers here (load the constant from flash or RAM, or encode it in the instruction). You can see what your toolchain is doing for various cases by viewing a disassembly listing of the program and following the assembler instructions. Many IDE's provide for generating disassembly listings, or you can use a standalone program.
Jan 20, 2017 at 14:58 answer added Ronan Paixão timeline score: 0
Jan 20, 2017 at 14:15 answer added Jon timeline score: 7
Jan 20, 2017 at 12:37 comment added Lundin Possible duplicate of What resides in the different memory types of a microcontroller?.
Jan 20, 2017 at 12:33 answer added dannyf timeline score: -1
Jan 20, 2017 at 8:48 answer added dim timeline score: 3
Jan 20, 2017 at 8:47 comment added Roger Rowland RAM in most micros is volatile, so constants are stored in flash and may (or may not) be copied to RAM during initialisation (it depends on the micro). The "memory layout of C program" that you reference is not a standard as such, much of these sort of details are implementation dependent. C itself is just the high level language, memory usage will be determined by the compiler and linker, with some knowledge of the target platform. I don't see any "ambiguity" in this, unless I misunderstood your concern?
Jan 20, 2017 at 8:47 answer added Neil_UK timeline score: 7
Jan 20, 2017 at 7:25 history asked Arun Joe Cheriyan CC BY-SA 3.0