Like Tree1Likes
  • 1 Post By Tclausex

I want to write an OS and chose Intel C compiler on linux?

This is a discussion on I want to write an OS and chose Intel C compiler on linux? within the C Programming forums, part of the General Programming Boards category; I want to write a 64 bit OS without using any kernel using C and assembly.. I want to use ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    16

    I want to write an OS and chose Intel C compiler on linux?

    I want to write a 64 bit OS without using any kernel using C and assembly.. I want to use free non-commercial version of Intel C compiler which is on linux. I don't want to write it in C++. I don't want to download the wrong version.
    Please give me the true download link. Is it with studio or I have to use something like eclipse? Can you guide me through this?
    How can I say to compiler not to use any shared library and merge everything needs statically to my exe for not having any problem in boot time?


    Thanks!

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    2,289
    why don't you want to use gcc? it comes with every linux distribution, and does a fine job building an operating system. what does the intel compiler do, that gcc will not?

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    16
    Quote Originally Posted by Elkvis View Post
    why don't you want to use gcc? it comes with every linux distribution, and does a fine job building an operating system. what does the intel compiler do, that gcc will not?
    I think intel's compiler is better. Also, you can use intel format assembly (not AT&T) with ease. I know gcc can but with intel it is standard.

  4. #4
    Registered User
    Join Date
    Nov 2011
    Location
    Saratoga, California, USA
    Posts
    334
    stahta01 likes this.

  5. #5
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,235
    Quote Originally Posted by Elkvis View Post
    why don't you want to use gcc? it comes with every linux distribution, and does a fine job building an operating system. what does the intel compiler do, that gcc will not?
    Well, using the Intel compiler will guarantee his OS will not run on ARM... gcc can't make the same claim!

    More seriously... You need to be careful using icc for kernel code. It generates vector instructions by default among a number of other things that are inappropriate for kernel code. The justification that it uses Intel syntax, which the OP prefers, is one of the weaker justifications for something that I've seen.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 06-10-2010, 08:49 PM
  2. Write a service in Linux
    By hosseinyounesi in forum Linux Programming
    Replies: 24
    Last Post: 07-23-2009, 07:46 AM
  3. Replies: 11
    Last Post: 01-20-2009, 01:13 PM
  4. Intel Compiler 7?
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 05-14-2003, 04:36 AM
  5. How do i write a compiler
    By knight543 in forum C++ Programming
    Replies: 5
    Last Post: 07-27-2002, 03:44 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21