Talk:Raspberry Pi Bare Bones

From OSDev.wiki
Revision as of 22:44, 30 November 2014 by osdev>Sortie (moved Talk:ARM RaspberryPi Tutorial C to Talk:Raspberry Pi Bare Bones: Rename to be more consistent with the other bare bones tutorials)
Jump to navigation Jump to 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)