FAQ Database Discussion Community

How can I align stack to the end of SRAM?

I have a STM32F103VCT6 microcontroller with 48kb of SRAM, and recently i've got a memory collision: I have some static variable (lets call it A) located in heap with size of 0x7000 and I wrote some simple function to get info about stack and heap: void check(int depth) { char...

Excluding GNU as (GAS) standard startup code [closed]

I want the GCC to exclude the startup code it link automatically with building process what should i do? So that i have my Own Startup assembly code defining labels (_start, _exit,..etc)...