On 05/19/2010 10:23 PM, Kraiser wrote: > > http://stackoverflow.com/questions/1857296/can-gcc-on-ubuntu-on-a-64-bit-machine-generate-an-executable-where-long-is-32-bit > It's my problem actually any possible way to do that ? > well -m32 isn't actually what i'm looking for because it compiles code for > 32-bit enviorment along with pointers(32 bit) i need pointers to be 64-bit > but long = 32bit just like it is on Windows LLP64. > If the feature isn't exist maybe it would be awesome to add in future > releases of GCC :? I doubt it. The system ABI defines the interface between a C program and the libraries it uses, and SIZEOF_LONG=4 would break that. It's always going to be easier to fix the program. Andrew.