Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7076653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:19:28+00:00 2026-05-28T06:19:28+00:00

64bit compiled files are approx. 20% bigger than 32bit executables. I think it’s same

  • 0

64bit compiled files are approx. 20% bigger than 32bit executables. I think it’s same for 64bit OS vs 32bit OS. Thanks god the ratio is not 50%. Is 20% really necessary? Do 64 bit programs consume more RAM either? Will 128bits be much bigger?

Addition:
I know 32bit word vs 64bit word. The char ‘A’ requires 4 bytes in 32 bit mode and 8 bytes in 64bit in memory. Does an executable contain tons of constants which aligned/padded so it’s bigger in 64bit form? IMHO the differences between 64bit exe & 32bit exe are instruction codes -I think they don’t inflate the file size too much- and static data & memory addresses. If so, an exe contains much more static data than I imagine. It looks like PNG8 vs PNG24 a bit. Or I’m totally wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:19:29+00:00Added an answer on May 28, 2026 at 6:19 am

    Depending on the ISA (Intel, ARM, whatever), various instructions need to be word-aligned (which may cause them to take more space), and numerical constants need to match the processor’s word size. Binary code is full of int constants: your loops start at zero, etc. In short, the likely cause of the extra space is int padding and word alignment of constant data.

    Depending on how it’s compiled, 64-bit code may well use more memory. Data structures also want to be word-aligned for fast access, and the compiler may choose to pad your structs. Also, depending on the compiler, some int constants may change size. (That’s why you always see typdefs like uint32: guaranteed size.)

    Last but not least, pointers take twice the memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In xp 32bit this line compiles with not problem however in vista 64bit this
I compiled an 64bit binary of ioquake3 and an SDL binary to go along
I want to compile GCC and binutils which would produce 64bit executables. From GNU
Using MSVC2008, 32bit on 64bit system. I was once advised to never include windows.h
I have two applications running on W2k8 R2 x64, one is compiled as 64bit
How can I determine if I'm running on a 32bit or a 64bit version
I have access to a library with pre-compiled 32 bit mex files (Windows: .mexw32
If I have a Any CPU compiled .NET app, it will run in 64bit
I'm trying to compile Python 2.6 for 64bit, I tried various compile commands but
(My environment is 64-bit Ubuntu, my application is C++ compiled and linked with g++.)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.