C compiler information

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C compiler information

1,345 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by giamby3000 on Fri Jul 29 06:49:00 MST 2011
Hi!
How can I find C compiler  information used iin LPCXXpresso?
In particular I would like to know data types representations like these:
int : how many bits ?
char
unsigned char
long?
uint32 ect...  ?

With other compilers for 8 / 16 bit uP I can make an asm call for example
__asm NOP
How can use this instruction in LPCXpresso / GNU GCC compiler?

How can I find these informations?

Thank you very much and sorry for my basic questions!

:confused::confused::D
0 Kudos
Reply
4 Replies

1,242 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by giamby3000 on Fri Jul 29 07:33:23 MST 2011

Quote: Zero
Compiler:

Try GNU online doc:

http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/

Basic C questions:

A good C book or Wiki:

http://en.wikipedia.org/wiki/C_variable_types_and_declarations

NOP:

Use LPCXpresso file search function: CTRL-H, enter NOP and you can see where it's defined :)



I have already seen LPCX help for NOP, but if I write __asm NOP I have a compile error...
I know C language, but you teach me that compilers are different as implementation.. or not?
As this link: http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/
I have already found this link, but I don't find data types description. not at all, I'll find it sooner or later...
Thank you very much
0 Kudos
Reply

1,242 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by giamby3000 on Fri Jul 29 07:22:07 MST 2011
For ROB65:
Thank you very much for your answer!:mad::mad::mad:
Now all thinks are more clear!
Thank you!

Have a nice day!
0 Kudos
Reply

1,242 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Fri Jul 29 07:06:17 MST 2011

Quote: Zero
Try GNU online doc:

http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/



Oh Cool :D
May i now ask G's next question for him ...

I can't find " LPCXpresso"  in this GNU manual, where should I look? :eek:

He could of course just use the #include "LPC13xx.h" file and use types like uint8_t, int16_t etc.
I'll leave it up to G to figure out how many bits are being used by these types :rolleyes:

G, just check the example projects. There are some nice examples of inline assembly in those projects.

Rob
0 Kudos
Reply

1,242 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jul 29 07:00:57 MST 2011
Compiler:

Try GNU online doc:

http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/

Basic C questions:

A good C book or Wiki:

http://en.wikipedia.org/wiki/C_variable_types_and_declarations

NOP:

Use LPCXpresso file search function: CTRL-H, enter NOP and you can see where it's defined :)
0 Kudos
Reply