The MASM Forum

Specialised Projects => CoderStudio => Topic started by: Manos on February 05, 2019, 06:25:48 AM

Title: CoderStudio
Post by: Manos on February 05, 2019, 06:25:48 AM
CoderStudio has been updated.
I updated the include files and the pcc32.exe to avoid hanging.

This package includes Tools for Windows 32 bit programming. A plain C compiler 32 bit, (pcc32), a Linker 32 bit, (Link32) and a Resource compiler 32 bit, (rc32).
There is also an IDE that supports the above Tools.

Download the package from: http://www.manoscoder.gr/mysite/coderstudio.htm

Any suggestion is welcome.

Manos.
Title: Re: CoderStudio
Post by: Vortex on February 07, 2019, 06:10:57 AM
Hi Manos,

Thanks. My setup contains C:\pcc32\include and C:\pcc32\lib

Building a quick example :

Code: [Select]
#include <stdio.h>
int main()
{
 printf("Hello world!\n");
 return 0;
}

Code: [Select]
pcc32.exe /c /I.\include Hello.c
Link32.exe /SUBSYSTEM:CONSOLE /LIBPATH:.\lib Hello.obj msvcrt.lib

The executable is 3584 Bytes.
Title: Re: CoderStudio
Post by: Manos on February 07, 2019, 06:14:12 AM
Thank you Vortex.

But the executanle is big!
Why ?

Manos.
Title: Re: CoderStudio
Post by: Vortex on February 07, 2019, 06:34:02 AM
Hi Manos,

Here are the sections and the sizes :

Code: [Select]
.text 400h
.rdata 200h
.data 400h
.bss  0h

The DOS stub is 400h I didn't merge the sections.
Title: Re: CoderStudio
Post by: Manos on February 07, 2019, 07:11:32 AM
Vortex.

You are right.
I builded your example and has the same size.
Link32 merge the sections by itself.

Manos.