Kernel with Intel C Compiler

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.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Kernel with Intel C Compiler

Post by Candy »

I remember why I stopped making clex (lexer generator) for a while some time ago. I was busy debugging it for a long time, porting it to the STL and cleaning it up, and then it all of a sudden compiled without me having any todo-things left. So, I figured, let's try what it does. Result was that it didn't do anything except ruin the output file. So, I had a bug.

My main oops there was that the lexer generator generates Lexer.h, Lexer.cc, Token.h etc. My lexer generator was of course, as I should be planning ahead, prepared to be self-generated. So, it kind of overwrote most of itself with empty files before I made a backup of it. That annoyed me so that I stopped it for a moment. I know where it is (computer at home on the linux partition) so I'll try to reanimate it tonight and to separate the compilation output first. Most recent version I can find on my laptop is from 2003, which is kind of old (even for my standards). Still from the time that I distrusted the stl enough to make similar implementations myself... which are so compatible that a few sed commands can replace them with STL components :).
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Kernel with Intel C Compiler

Post by bubach »

2003 feels like the stoneage for me, back then i hardly knew anything about asm. and i thought i knew much more then i did.
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Kernel with Intel C Compiler

Post by Candy »

bubach wrote: 2003 feels like the stoneage for me, back then i hardly knew anything about asm. and i thought i knew much more then i did.
Dito here for C++ in 2003. I knew the bare language up to a decent level but I didn't know the STL quite as much as I do know. The design I made for clex didn't change though and I still consider it good, so that's a very good sign (in my eyes). The compiler design is also changing weekly (in details mostly), the OS + library + stream design is pretty stable.

Will work on clex tonight, if I get even the slightest chance (from what I'm hearing here, I'm going to have a fair bit of time the next week... only need to pack for moving).

Small PS on those who know me better: I'm moving from Enschede to Tilburg on the 28th of February or 1st of March. Will be having a dayjob from the 17th on so that'll be quite a relaxed time. Finally, evenings off.

[edit]

Juuuust a second there bubach :)

You hosted my website at pd.asmhackers.net. I've kind of lost the password and that'd be the site I'd want to put these things up on. Could you send me the password again?
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:Kernel with Intel C Compiler

Post by Pype.Clicker »

Candy wrote: You can't port the compiler, so you can't make your own OS self-supporting. What good is an OS that can't even compile itself at some point in the future?
that's certainly something i tend to oversee ... the ultimate option might be to stick to ANSI or C99 standard torough your OS code so that any standard-compliant compiler could be ported to your OS for self-compiling...

yet i have to admit that it would be a pain for me to use only ANSI features and none of the GCC extensions ...
srg

Re:Kernel with Intel C Compiler

Post by srg »

Pype.Clicker wrote: Traditionnally, Intel compiler is reputed for its "better" integration of MMX/SSE features by the mean of "builtin" functions. Intel may have decided to change their policy recently, but - afaik - their compiler is not available for free, and the charges will keep any hobbyist out of the game ...
It checks you CPU's vendor string and only if it's "GenuineIntel" does it use SSE2. One example of this is the QMD core on Folding@home, it runs slower on AMD chips because it won't enable support for SSE2, even if they support it.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Kernel with Intel C Compiler

Post by Solar »

Candy wrote:
bubach wrote: I think Solar should make a VSPDCC ( Very Simple Public Domain C Compiler ) when he's done with pdclib. ;)
I think he should take a well-deserved vacation after PDClib is done in v1.0.
[me=Solar]bows[/me]

Thanks, but I fear I have at least one other project waiting in the queue already. After my personal desaster with AStyle, I'm planning to write a C/C++ source reformatter (i.e., AStyle with a cleaner layout and ignoring Java / C#). And that is apart from porting PDCLib to three dozen platforms and thinking about some extension library...

As for C compiler... you might want to try VBCC. But the whole point of the Intel C compiler is its superior optimization backend, isn't it... and I doubt any of us here will be able to copy that. So we could just as well stick to already-available Open Source compilers, IMHO.
Every good solution is obvious once you've found it.
JAAman

Re:Kernel with Intel C Compiler

Post by JAAman »

Candy wrote:
The MS compiler in its most MS loving form is free for non-commercial use. All others, including semi-professional work, you have to pay for.
sorry candy, but this just isn't true (and never has been)

in the past, the free compiler was limited by being command-line only (no IDE) and because the optimizations were disabled, but there were no restrictions on distribution (including commercial distribution)

the new one availible now, is completely free -- including the IDE and full optimizations, and again there are no restrictions on commercial distribution:

4. Can I use Express Editions for commercial use?


Yes, there are no licensing restrictions for applications built using the Express Editions.
emphasis supplied
JoeKayzA

Re:Kernel with Intel C Compiler

Post by JoeKayzA »

JAAman wrote: the new one availible now, is completely free -- including the IDE and full optimizations, and again there are no restrictions on commercial distribution:
Ok, I've found the download link for the compiler and linker package (visual c++ toolkit), but where is the IDE?
Rob

Re:Kernel with Intel C Compiler

Post by Rob »

Link to the web download (ie, download a "small" setup file that downloads the rest of the package itself):

http://msdn.microsoft.com/vstudio/express/visualc/download/

Or a full CD image:

http://msdn.microsoft.com/vstudio/express/support/install/
(there are other .NET IDE's/compilers there as well for free)

p.s. you don't need the [large] Platform SDK, that's if you want to develop Windows apps in C++
proxy

Re:Kernel with Intel C Compiler

Post by proxy »

just thought i'd mention that i noticed a small OS that is built with visual c++

http://www.jbox.dk/sanos/

it focuses on running java apps, but is a functional OS in itself

proxy
Post Reply