Author Topic: Choose of compiler for intro coding  (Read 4074 times)

0 Members and 1 Guest are viewing this topic.

Offline va!n

  • Pentium
  • *****
  • Posts: 1431
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Choose of compiler for intro coding
« on: May 06, 2008 »
hi guys,
i am interesting to know what compiler/ide you are using for intro coding like 1k, 4k, 64k intros and other things. I started my first 1k with GCC and CodeBlocks as IDE which was good and easy for me as beginner.

After Breakpoint i moved over to the latest version of VisualStudio 2008. For me its more complicated to work with its IDE for the first time. But its still ok and i think its better to work with! My personally problem are all the settings you can change (still to much for a beginner) to create tiny obj/exe files.

Until now (since eastern) i dont manage it to get my 1k project (converted to compile with VS2008) under 12KB exe size. I have no idea whats wrong. I havent tried VS2005 and i think it makes more sence to work with the latest version (2008) instead starting with an older version (2005) and moving later over to 2008.

So what compiler/ide and settings are you using to code tiny things? Someone experience coding tiny stuff using VS2008?

Btw, is there any size different (for tiny things) between VS2005, VS2008 and Express/Pro version?
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2751
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Choose of compiler for intro coding
« Reply #1 on: May 07, 2008 »
I can't help you here, since I'm still using VC2005 and I won't update it for now... Have you tried dev-cpp ?

Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Choose of compiler for intro coding
« Reply #2 on: May 07, 2008 »
@va!n:
Coding for Windows IMHO VS is the only way to go.
I also did my 4ks, 1ks with the 2005 Edition - but
I guess the VS2008 edition should work well.

It's true, that especially in the beginning the vast
choices of options you can set via the IDE may be
very irritating. I would suggest that you load whole
projects into VS which comes with all settings and
then edit just the code. There are several links and
files to find in this forum.

One thing you have to do manually of course is to
replace the linker with crinkler when you want to
use crinkler for tiny productions.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Choose of compiler for intro coding
« Reply #3 on: May 07, 2008 »
You can't make tiny exes with VC2008 alone, because you need to use crinkler.  The smallest Windows exe you can make is probably 4kb or 8kb otherwise, with no real way of fixing that.
But, as I've said before, I've not managed to get crinkler to link VC2008 object files.  It doesn't like them.

What would be useful here Mr Va!n is if you would post your code.  If you're worried about people pinching it, just replace your sin-wave fx with code that draws an orange rectangle and post it here - the rest of the code has been given to you by other people.  Post your .sln and .csproj files too.  Then people here can work with crinkler, vs2008, some working C code and we can get you an answer to your problems.  It would be excellent in two ways - one, you get your answer and, two, everyone else learns how to make 1k demos.

Jim
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17398
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Choose of compiler for intro coding
« Reply #4 on: May 07, 2008 »
What would be useful here Mr Va!n is if you would post your code.  If you're worried about people pinching it, just replace your sin-wave fx with code that draws an orange rectangle and post it here - the rest of the code has been given to you by other people.  Post your .sln and .csproj files too.  Then people here can work with crinkler, vs2008, some working C code and we can get you an answer to your problems.  It would be excellent in two ways - one, you get your answer and, two, everyone else learns how to make 1k demos.

Indeed.

In fact I am seriously thinking of ammending the rules of the board here so that anyone seeking help but not posting the source where relevant gets the topic locked in future. I need to think about it first but that's how it will probably end up.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline mentor

  • ZX 81
  • *
  • Posts: 8
  • Karma: 8
    • View Profile
Re: Choose of compiler for intro coding
« Reply #5 on: July 03, 2008 »
Jim: I have recently made the switch to VC2008 myself without experiencing any problems. As far as i can tell, the generated .obj files are nearly identical to those generated by VC2005. Have you by any chance forgot to disable link time code generation?

Cheers
-mentor/TBC

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Choose of compiler for intro coding
« Reply #6 on: July 03, 2008 »
I don't know what I was doing wrong - I've been experimenting with crinkler and VS2008 again recently and it works OK.
I think I might have had some old libs in my link or something. :-/

Jim
Challenge Trophies Won: