On Tue, Jan 24, 2017 at 02:23:13PM +0000, Dibyendu Majumdar wrote: > Hi > > I am working on porting Sparse to Windows, and I noticed that in > 64-bit architecture the bits_in_long is set to 64. This is not true > for Windows where long is 32 bits on a 64-bit machine. I was wondering > if I just need to set this parameter to 32 or if there are other > implications that I need to be aware of. Hi, If you just change the initial value in target.c, it won't do what you need because currently, if you compile sparse on a machine where __x86_64__ is defined, it will automatically enable the -m64 option which will setup things for an LP64 architecture instead of the LLP64 that you need (inside handle_arch_m64_finalize()). Ideally, we should have a mean to configure the default value of such things at building time. Hope it helps, Luc -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html