I started out learning Thumb 2 , to program for the ARM Cortex M, and ended up buying a book on ARM
assembly language, cuz I assumed it would be the same instruction set, but this book uses the GAS Syntax for the GNU Assembler, which they say is different from ARM syntax works on a wide variety of architectures.
Of course, I have nothing against playing around with both instructions sets as I
fairly new to Assembly language, and would like to get a feel for changing environments
Which of course has me wondering about the Keil Assembler, and what instruction sets
it can support.
Is it just matter of choosing a different directive at the start, like instead a A THUMB directive, it would be GAS or GNU or GNU ARM
or whichever the directive is fir instruction sets that Keil supports?
And is there is list somewhere of which instruction sets Keil supports?
GNU is an entirely separate, independent thing:
https://en.wikipedia.org/wiki/GNU
The ARM and GNU assemblers are not the same.
https://developer.arm.com/docs/dui0773/f/assembling-assembly-code/assembling-arm-and-gnu-syntax-assembly-code
Damn. I was hoping thefe was a way i could use the same syntax in Keil. So if I wanted to program my cortex M with GNU ARM , i would need a different IDE than keil? Or would i have to do it all from command prompt?
There is GNU, then there is ARM, then there is GNU ARM. So i guess you can use GAS to assemble ARM, but you can’t use keil to assemble GNU ARM?
Here, a picture is quicker.
The Keil IDE is called uVision.
uVision can work 3rd-party tools - though I'm not sure why you'd want to do that?
The obvious choice for an IDE for use with GNU tools would be Eclipse
Because those are the two environments im learning right now, so i wanted to see if i could kill two birds with one stone. But I will check out eclipse. Thanks. I will mark as resolved.