Kernel with Intel C Compiler
Re:Kernel with Intel C Compiler
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 .
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 .
Re:Kernel with Intel C Compiler
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.
Re:Kernel with Intel C Compiler
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.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.
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?
- Pype.Clicker
- 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
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...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?
yet i have to admit that it would be a pain for me to use only ANSI features and none of the GCC extensions ...
Re:Kernel with Intel C Compiler
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.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 ...
Re:Kernel with Intel C Compiler
[me=Solar]bows[/me]Candy wrote:I think he should take a well-deserved vacation after PDClib is done in v1.0.bubach wrote: I think Solar should make a VSPDCC ( Very Simple Public Domain C Compiler ) when he's done with pdclib.
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.
Re:Kernel with Intel C Compiler
sorry candy, but this just isn't true (and never has been)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.
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:
emphasis supplied
4. Can I use Express Editions for commercial use?
Yes, there are no licensing restrictions for applications built using the Express Editions.
Re:Kernel with Intel C Compiler
Ok, I've found the download link for the compiler and linker package (visual c++ toolkit), but where is the IDE?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:
Re:Kernel with Intel C Compiler
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++
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++
Re:Kernel with Intel C Compiler
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
http://www.jbox.dk/sanos/
it focuses on running java apps, but is a functional OS in itself
proxy