Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
On what platforms can I use my C99 executable?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: On what platforms can I use my C99 executable? (Read 4148 times)
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
Logged
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.
Logged
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."
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
Logged
Jenna
Administrator
Lives here!
Posts: 7252
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.
Logged
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
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
On what platforms can I use my C99 executable?