Author Topic: On what platforms can I use my C99 executable?  (Read 3224 times)

Offline Slobodan

  • Single posting newcomer
  • *
  • Posts: 3
On what platforms can I use my C99 executable?
« on: August 27, 2008, 12:14:29 pm »
Hi!

I have a question that is not simple to me.

I've been using Code::Blocks for a month, and I am developing an application in C99. The compiler is mingw32-gcc.exe. I am interested on what processor architectures and operating systems can I use my C99 executable? (How) can it be easily seen in Code::Blocks environment?

Thanks in advance,
Slobodan

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: On what platforms can I use my C99 executable?
« Reply #1 on: August 27, 2008, 12:24:50 pm »
It obviously depends first on your compiler (MinGW-32), second on your architecture switch, and lastly on your code.

MinGW-32 means any supported version of Windows. If you don't play with anything, your code normally works on all machines.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Slobodan

  • Single posting newcomer
  • *
  • Posts: 3
Re: On what platforms can I use my C99 executable?
« Reply #2 on: August 27, 2008, 01:13:39 pm »
Hi!

I haven't touched anything regarding the compiler settings.

Does it mean that I can use on both 32bits and 64bits architecture?
Both Intel and AMD?
Windows, Unix and Linux?

Is it possible to see what platforms are supported with my compiler?

Thanks again,
Slobodan

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: On what platforms can I use my C99 executable?
« Reply #3 on: August 27, 2008, 01:29:40 pm »
You should be able to use all actual windows versions (32- and 64-bit), if you compile on windows 32-bit.

If you want to run your software on Linux or Mac you have to compile it on the appropriate platfor or use a cross-compiler if available.

Afaik it is possible to cross-compile from windows for linux, but I'm not sure. The other way works without problems.

If you don't use special settings to optimize for special CPU's it doesn't matter if you run windows on Intel or AMD.

Offline Slobodan

  • Single posting newcomer
  • *
  • Posts: 3
Re: On what platforms can I use my C99 executable?
« Reply #4 on: August 27, 2008, 02:01:06 pm »
I catch your drift!

Thanks,
Slobodan