Talk:Raspberry Pi Bare Bones

From OSDev Wiki
Jump to: navigation, search

Love4boobies, I needed to change instances of "asm volatile" to "__asm volaktile" even with "-std=c99". And yes, I did compile and test this before editing the wiki. I'm using arm-none-eabi version 2012.03.56 btw. --Andreasbwagner 16:38, 26 January 2013 (CST)

It should have been -std=gnu99 (or gnu89 even) -- "c99" effectively enables "-ansi" and so asm is indeed unavailable. I believe that the proper keyword to use here is __asm__, not __asm which works fine, but is described as a "compatibility" one in the GCC docs. Or just enable GNU C extensions and use plain "asm". Alexshpilkin 08:54, 30 August 2013 (CDT)
Personal tools
Namespaces
Variants
Actions
Navigation
About
Toolbox