Mingw32 compiler, Computer Engineering

Assignment Help:

Although there are no compulsory "c" compiler for this subject, but the compiler we are going to use for this example is the Mingw32 compiler.

Download the source code files from the course website (filename "RTS practical assignment 2011sp1.zip"). Unzip the files into your "My Document" directory. The source code for our first example is intro.c. To compile the file using Mingw32, first make sure the following files are in the same directory as the intro.c file: pthread.h, sched.h, pthreadGC.dll and libpthreadGC.a. Once they are all in the same directory start a command console (or START>run>type in cmd) and use the cd command to change the working directory to where all the source files are stored. Use the path command to set the execution path for gcc.exe by typing path=c:\MinGW\bin\ at the command prompt. Use the following command to compile the c source code into an executable:
 
gcc  intro.c  -o  intro.exe  -I  -L  pthreadGC.dll
 
After compiling the program you will find the executable  intro.exe in the same directory as the intro.c source file. You can execute the program by typing intro.exe in the DOS console.


Related Discussions:- Mingw32 compiler

Which method is used for resolving data dependency, Which method is used fo...

Which method is used for resolving data dependency conflict by the compiler itself?  (A) Delayed load.   (B) operand forwarding.   (C) Pre fetch target instruction.  (D) loo

Explain digital signatures, Digital Signatures. A digital signature is ...

Digital Signatures. A digital signature is an electronic rather than a written signature that can be used by someone to validate the uniqueness of the sender of a message or of

Perform on occurrence of an interrupt, Q. Perform on occurrence of an inter...

Q. Perform on occurrence of an interrupt? Determining these requirements let's work out steps that CPU should perform on occurrence of an interrupt. The CPU should find

The job allocation register, Signify this problem by means of: i.    An Ent...

Signify this problem by means of: i.    An Entity Relationship model; ii.    Relational tables. Pete's Programmers is a firm which supplies part time staff on contract to organisat

Information system for strategic advantage, Q. Describe short note on Infor...

Q. Describe short note on Information system for strategic advantage? Ans. Strategic role of information systems engage using information technology to develop products or serv

Calculate width and height of the grid, Given a cell, we must determine its...

Given a cell, we must determine its neighbouring cells i.e. those with which it shares a wall. The cells with an x are the neighbours of the cell c. Write the function getneighbour

Explain bernstein conditions for detection of parallelism, Bernstein Condit...

Bernstein Conditions for Detection of Parallelism For execution of a number of instructions or a block of instructions in parallel, it must be made certain that instructions ar

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd