gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Pointer size in memory

#23772 - krozen - Wed Jul 21, 2004 10:01 am

Hey guys, does any one know the exact size of a pointer to a 16 bit integer in C.Im presuming its 16 bits, as it contains a memory address.....

#23774 - Cearn - Wed Jul 21, 2004 11:32 am

If I recall correctly, pointers are usually int-sized. 32bits in the GBA's case.

#23782 - poslundc - Wed Jul 21, 2004 1:50 pm

You can consider it confirmed: all pointers on the ARM processor are 32-bit. Irregardless of the data type being pointed to.

Dan.