Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

What are the sizes of the main data types for Synergy designs?

Last Updated:10/30/2017

Question:

What are the sizes of the main data types for a Synergy design?

Answer:

char is always 1 byte (with multi-byte disabled)
short is always 2 bytes
long (long int) is always 4 bytes
int is architecture-specific - on 32-bit Cortex M4 it's 4 bytes
long long is always 8 bytes
float is native size 4 bytes (32-bits) and double is twice native size 8 bytes (64-bits)
Here is a reference: http://www.keil.com/support/man/docs/armcc/armcc_chr1359125009502.htm
Synergy Platform