From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: Dibyendu Majumdar <mobile@majumdar.org.uk>
Cc: linux-sparse@vger.kernel.org
Subject: Re: Query regarding sizeof long
Date: Tue, 24 Jan 2017 15:47:12 +0100 [thread overview]
Message-ID: <20170124144711.evipzg47ka572qgd@macpro.local> (raw)
In-Reply-To: <CACXZuxdCP6C_1Y7OHgrxkLYct6CuuArM22ZH6_g_CHixMDhTQQ@mail.gmail.com>
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
next prev parent reply other threads:[~2017-01-24 14:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 14:23 Query regarding sizeof long Dibyendu Majumdar
2017-01-24 14:47 ` Luc Van Oostenryck [this message]
[not found] ` <CACXZuxdGV=VMiVdw7qM-wOzjOXEAV8WAw9KaXM+zpcA1c2RK6w@mail.gmail.com>
2017-01-24 18:00 ` Luc Van Oostenryck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170124144711.evipzg47ka572qgd@macpro.local \
--to=luc.vanoostenryck@gmail.com \
--cc=linux-sparse@vger.kernel.org \
--cc=mobile@majumdar.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).