banh
Advanced Member level 1
4-bit, 2-bit data type..
I wish to compact RAM as much as possible, so i define 4-bit and 2-bit data types to use when necessary:
struct {
unsigned char val:4;
}
struct {
unsigned char val:2;
}
What do you think about this? is it compiler-dependent to achieve this? are we always sure that the memory will be used in compact way with this?
I wish to compact RAM as much as possible, so i define 4-bit and 2-bit data types to use when necessary:
struct {
unsigned char val:4;
}
struct {
unsigned char val:2;
}
What do you think about this? is it compiler-dependent to achieve this? are we always sure that the memory will be used in compact way with this?