flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > Most recommended freeware C/C++ compiler?

Goto page Previous  1, 2, 3, 4, 5, 6  Next
Author
Thread Post new topic Reply to topic
TmX



Joined: 02 Mar 2006
Posts: 822
Location: Jakarta, Indonesia
TmX
AFAIK, TinyCC only has standard C libraries, and some few Win32 extension. So it's not complete (compared to another compiler,like Pelles C). It's nice though
Post 28 Mar 2007, 10:59
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc
Regarding development of TinyCC: there have been a few updates to the CVS repository in the last four months, but nothing significant from what I can see. The mailing list still has a moderate amount of traffic, so it's not dead yet Smile
Post 28 Mar 2007, 22:22
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Quote:
AFAIK, TinyCC only has standard C libraries, and some few Win32 extension. So it's not complete


I like the size and the simplicity of TCC. Smile

Not that good:
- Relies on M$WCRT.DLL (or can I deactivate this effect / make "static" ??? Confused )
- No DOS version / target

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 31 Mar 2007, 00:04
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
Relies on M$WCRT.DLL (or can I deactivate this effect / make "static" ???

Do you have some static libc?
Post 31 Mar 2007, 01:07
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Quote:
Do you have some static libc?


No idea where to search ... and how to use Confused

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 31 Mar 2007, 02:15
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
that is the problem. If it should include some libc, it wouldn't be "tiny" anymore. Also writing such library is quite nasty job.

Maybe you could try to use static libc from MSVC (libcmt.lib)
Post 31 Mar 2007, 06:30
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Quote:
could try to use static libc from MSVC (libcmt.lib)


OK ... thanks, but a solution of course should be at least LGPL ... and
not from M$.

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 02 Apr 2007, 05:49
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 822
Location: Jakarta, Indonesia
TmX
What about LibCTiny ? Tested with Pelles C. Not sure about the other compilers.
http://www.wheaty.net/downloads.htm
Post 02 Apr 2007, 06:29
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Alternative for linux is diet libc
Post 02 Apr 2007, 09:48
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Well, I like the fact that TCC EXE's depend on MSVCRT.DLL.
Why?
Well, the EXE's are tiny. A simple hello world is 1,50kb.
Plus, the MSVCRT.DLL comes with all Windows OS.

And maybe you can link it static. (I never tried).


What I don't like about TinyCC is that it can't link resource files (I think).
Post 10 Apr 2007, 18:15
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
You can't link MSVCRT.DLL static, but you can link the version of the MS CRT that comes with your copy of VC/VS statically... or use one if the tiny librarie (like Jibz' WCRT).

You can also link dynamically to whatever version of the MS CRT your compiler comes with - this does have the disadvantage of requiring redistributables, but gives you the advantage of the better code in the more recent libraries...
Post 10 Apr 2007, 22:04
View user's profile Send private message Visit poster's website Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
I've got VS 2005 Pro for free from my university.
Is it really worth uninstall the Express edition to install it? Will be there more features?
Also, i want to save some space. So uninstalling the Express Edition and the PSDK, and installing the VS 2005 Pro will be smaller installation?
Post 13 Apr 2007, 13:59
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Post 06 May 2007, 01:41
View user's profile Send private message Reply with quote
Furby



Joined: 01 May 2007
Posts: 74
Location: Kraków, Poland
Furby
ICC (Intel C Compiler) is also free for non-Comercial use. [Only the Linux version]

http://www.intel.com/cd/software/products/asmo-na/eng/340679.htm
Post 06 May 2007, 15:12
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
What's the best way to get MS VC++ compiler only without IDE?

Hmm... MS just released free beta version of 2008 version:
http://msdn2.microsoft.com/pt-br/vstudio/default.aspx
Post 09 Aug 2007, 04:27
View user's profile Send private message Reply with quote
Maverick



Joined: 07 Aug 2006
Posts: 251
Location: Citizen of the Universe
Maverick
Hi OzzY: I am a command-line-only VC user, and ended up getting it from the big one, last time from the same Orcas beta you mentioned above.

Previously there was (I think for MS VC 2003) a command-line-only release, but it's not worth.. if you want the latest. Orcas beta 1 fixed a nasty bug I reported to MS, which they weren't able to fix in time neither for VC2007 SP1 (although I reported immediately when SP1 public bugtests started), so I was forced to switch to Orcas (I had also tested Phoenix, and the bug wasn't present there, but Phoenix is a bit too much primitive for now - mind you, I think Orcas is based on Phoenix under the hood anyway, but it's much more "standard VC").

So, I think "the best way to get MS VC++ compiler only without IDE" as you asked is to get the full download and then strip everything but:

VC\bin (only part of)
VC\lib (only part of)
and if you need them, VC\include, etc..

You'll also need to grab MSVCR90.DLL and other DLL's (msvcp90.dll, msvcm90.dll, etc..) from the IDE directory.

I'd post my zipped dir, with the above work already done, but that would be illegal, so I cannot do it.
Post 09 Aug 2007, 08:35
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
OzzY wrote:

Quote:
MS just released free beta version of 2008 version


COOL.

M$ Server wrote:

Quote:

Download size: 3214 MB
Estimated download time: 129 hours
Post 09 Aug 2007, 16:31
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Hi Maverick!
I have a legal copy of VS 2005 Pro I got from school.
So, I installed it. I copy \bin, \lib and \include directories.
Where can I find the required DLLs? I don't understand what you mean by "from the IDE directory".

Thanks
Post 09 Aug 2007, 19:51
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
I'm thinking about sticking to Pelles C for C and CodeBlocks+Mingw for C++. MSVC++ seems not really worth the bloat.
But I'll try to get only the compiler without the IDE to see how much space it requires.
Post 09 Aug 2007, 19:53
View user's profile Send private message Reply with quote
Ehtyar



Joined: 26 Sep 2006
Posts: 51
Ehtyar
Maverick wrote:
Hi OzzY: I am a command-line-only VC user, and ended up getting it from the big one, last time from the same Orcas beta you mentioned above.

Previously there was (I think for MS VC 2003) a command-line-only release, but it's not worth.. if you want the latest.

So, I think "the best way to get MS VC++ compiler only without IDE" as you asked is to get the full download and then strip everything but:

VC\bin (only part of)
VC\lib (only part of)
and if you need them, VC\include, etc..

Oh wow, i thought i was the only one, everyone criticizes me for it, but i find it far more efficient.

OzzY wrote:
Hi Maverick!
I have a legal copy of VS 2005 Pro I got from school.
So, I installed it. I copy \bin, \lib and \include directories.
Where can I find the required DLLs? I don't understand what you mean by "from the IDE directory".

Thanks

Provided you have downloaded orcas as suggested (i use vc 6 from the command line) you will find the required assemblies in C:\WINDOWS\WinSxS\. Look for folders that begin with x86_Microsoft.VC90 (i found four, as a i presume you will). Copy all 4 of these to your bin directory. Then take a look in C:\WINDOWS\WinSxS\Manifests. You will find a matching manifest for each of your assemblies beginning with x86_Microsoft.VC90. Copy these to your bin directory also. In order to have the windows loader acknowledge these copies, you will need to create a single side by side manifest telling it their location. Create a manifest in the bin dir called Microsoft.VC90.CRT.Manifest, and fill it thus:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
   <noInheritable/>
   <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.20404.44800" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"/>
   <file name="msvcr80.dll" hash="d3f918b946671d6f9c737ae0e92825eb05f7a1ef" hashalg="SHA1"/>
   <file name="msvcp80.dll" hash="c8b464ad67438106862ea6c2af05e3aa56f58fc2" hashalg="SHA1"/>
   <file name="msvcm80.dll" hash="1a829dac0cb46c646b7f59f2b1172a2a3a8feddd" hashalg="SHA1"/>
</assembly>
    

You will need to alter the versions and the hashes to match what you find in each of the manifests from the Manifests folder you found in the WinSxS directory.
Next, take each of the runtime DLLs from their respective folders and place them in the root of the bin directory, along with the new manifest (you will not need the debug versions, nor the mfc or atl dlls, all i have is msvcr90.dll, msvcp90.dll and msvcm90.dll). After that's done, go to the Common7\IDE folder below the root of your install dir, and take mspdb80.dll and put it in your bin directory (it needs no manifest or anything like that). This should make your (command line only) visual c compiler totally portable (usable anywhere).

Hope this helps, Ehtyar.
P.S. To test it you can rename the manifests and the assembly folders inside of the WinSxS folder and run cl /? in your bin dir from the command line. If you have any problems or questions, don't hesitate to ask.
Post 09 Aug 2007, 22:02
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4, 5, 6  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.