Author Topic: Compiler 32 bits in CPU 64 bits  (Read 7970 times)

Offline fabiobasso

  • Single posting newcomer
  • *
  • Posts: 4
Compiler 32 bits in CPU 64 bits
« on: April 08, 2013, 06:56:47 pm »
Hi,

There is a program to compile as 32-bit in codeblocks installed on a 64 bit CPU?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Compiler 32 bits in CPU 64 bits
« Reply #1 on: April 08, 2013, 07:55:37 pm »
You said what?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Compiler 32 bits in CPU 64 bits
« Reply #2 on: April 08, 2013, 08:41:20 pm »
There is a program to compile as 32-bit in codeblocks installed on a 64 bit CPU?
Yes - one of the many 32 bit compilers C::B supports.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compiler 32 bits in CPU 64 bits
« Reply #3 on: April 09, 2013, 12:28:44 pm »
32bit programs (including 32bit-targetting compilers) work just fine under 64 bits, at least under Windows. There is no 64bit-hosted 32bit-targetting compiler that I know of, but you don't need that.

Slightly different situation under Linux, but cross-compilers are readily available as part of every non-joke standard distro there.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline fabiobasso

  • Single posting newcomer
  • *
  • Posts: 4
Re: Compiler 32 bits in CPU 64 bits
« Reply #4 on: April 12, 2013, 12:54:09 am »
Thanks