what compiler compile minix?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
bgcq

what compiler compile minix?

Post by bgcq »

i now learn minix,who know minix use which compiler comiple itself sourcecode?
Curufir

Re:what compiler compile minix?

Post by Curufir »

You'll find a C compiler on the Minix CD, it's installed at the same time as you install the OS anyhow.

AFAIK it's an ANSI C compliant compiler in the latest Minix(The original Minix C compiler used classic C, they are very similar, but there are some differences).

The program itself is called 'cc', and you can get more information by typing 'man cc' at the command line (Don't include the apostrophes).

Instructions on recompiling the Minix kernel are given in the text files that are on the CD (There's a complete run through of setting up Minix and recompiling the kernel in there somewhere). Recompiling the kernel is actually very simple, it's pretty much a case of altering one config file and typing around 3 commands.

I suppose you could use GCC to compile Minix if you really wanted to, they (In theory ;)) use the same C standard, but personally I prefer to compile using the tools that the author used.

Hope that answers your question, or at least helps a bit.

**

Point of interest: Minix runs just fine under bochs 2.0, and is nice and easy to create a hd image of too because its installation is via floppy disks. So if you want a reasonably complete OS with C compiler that you can play around with on Windows then Minix might be worth investigating. It's a handy way to prototype certain things without needing a full OS.
bgcq

Re:what compiler compile minix?

Post by bgcq »

thanks your answer,but i want to know which compiler comiple the asm files of minix,such as mpx386.s and boot startup code?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:what compiler compile minix?

Post by Pype.Clicker »

hey, you do not *compile* assembler sources ... you assemble them :)

and i guess AS will be the assembler you need ... (usually, the assembler comes together with the compiler, as the compiler will generate .s files for the assembler :)
bgcq

Re:what compiler compile minix?

Post by bgcq »

thanks,AS is a assembler name?where are have it?
can you tell a website to download it?
Whatever5k

Re:what compiler compile minix?

Post by Whatever5k »

abless@bless:~$ man as

AS is the protable GNU assembler. Get it at the GNU site or anywhere else - if you dare :)
bgcq

Re:what compiler compile minix?

Post by bgcq »

gnu site is www.gnu.org?i cant find as
Whatever5k

Re:what compiler compile minix?

Post by Whatever5k »

AFAIK the pacakge binutils contains it. Actually, you should have the assembler already since every distribution installs the binutils package automatically.
bgcq

i cant find as

Post by bgcq »

i cant find afaik package in gnu size,i type man as ,can see help msg,but i type as ,the msg is:no find?
Whatever5k

Re:what compiler compile minix?

Post by Whatever5k »

Uhm, the package is not named 'AFAIK', but 'binutils'. Install this package.
AFAIK is just a short way to say "As far as I know" :)
Post Reply