[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Kernel Development Thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 38
Thread images: 1
File: osdev.png (14 KB, 120x100) Image search: [Google]
osdev.png
14 KB, 120x100
who's developing or has developed a kernel? any (horror) stories to tell?

I just started writing on a few weeks ago while Im on summer break, this shit is slow going.
>>
Have you done any systems coding before? If not have you previously studied OS theory?.
If you haven't done either expect your project to end abruptly. I'm about a year into mine (sans breaks, three years with.)
>>
I went through the IntermezzOS tutorial but haven't done anything else
>>
>>55419589
Oh yes, I took all my college undergrad and graduate classes in operating systems, and I've mucked with linux kernel modules, as well as written a small kernel for the MSP430. AMD64 is a different monster all together
>>
>>55419609
Well then you should fare much better than most! Seriously, half the forum (possibly more) on osdev is purely "What's a Cross compiler" or "Why isn't my code working". I've built a small kernel and boot loader. Nothing extremely functional yet. What platform will you be developing on?
>>
>>55419637
Developing on, or developing for?
I'm developing on linux on a thinkpad, and I'm targeting x86_64 because:
A) I want to boot it on my own hardware
B) I don't need a cross compiler (just -fno-stack-protector and a linker script for nasm)

I'm also using grub as a bootloader, but once I can get usermode on my kernel, I'm going to write my own.
>>
I made JOS in college. Was fun. Making a scheduler was fun
>>
>>55419700
whoa whoa whoa. How is -fno-stack-protector and nasm a replacement for a X-compiler. Seriously, I would love to know how you'll handle things like missing SO's and what not?
>>
>>55419745
I'm not using any shared objects. as long as the architecture matches, its all good.
>>
>>55419759
http://wiki.osdev.org/Why_do_I_need_a_Cross_Compiler%3F

I'm assuming the first two Paragraphs here aren't exactly accurate are they?
>>
>>55419392
Gnu hurd
>>
>>55419780
I dont include any system headers, so it doesn't matter what OS it thinks it is using.
>>
>>55419796
Neither does mine, but I'm guessing if I used the same build scripts and what not with a regular compiler it wouldn't run right. I'll have to test it! Thanks for the idea!
>>
>>55419819
>>55419796
I replaced my cross gcc with my native one in my Makefile. It seems to work for the most part other than a few warnings, and my assembler erroring out on some intructions. I'll see if I can't just specify a few different flags.
>>
>>55419884
>>55419819

yeah it basically makes no difference, unless you cant be bothered to define the uintXX_t types yourself or are actually compiling for a different architecture. Also I have been compiling my kernel with -pedantic on and it doesn't seem to be an issue.
>>
How does one into kernel development? I took an OS class and a compilers class and have some general understanding of assembly.
>>
>>55419997
https://littleosbook.github.io

Also the OS dev wiki and forums
>>
>>55420211
>https://littleosbook.github.io
I'll give this a read, thanks for the help! I'm just a bit curious, why is everyone in this thread working on OS stuff? Is it just for fun? Part of your job? Resume building?
>>
>>55420264
im OP, and I'm doing it because I'm bored out of my mind while I wait for a week until I start work, and this keeps my occupied.
>>
>>55420264
I had an OS class in university, now I just do little things for fun
>>
>>55420282
I start work in a couple weeks as well. I'll probably keep it up as a side project while I work. What language are you using? C or something new and hipster like Rust?
>>
>>55420282
Recent college grad? Where are you starting work?
>>
>>55420287
Not him but any examples of "little things for fun"?
>>
>>55420300
C, but I follow that guy doing the really good writeups on a kernel in rust, and give him pointers sometimes.

>>55420301
Google
>>
>>55420321
which guy is this?

>>55420301
i'd rather not say
>>
>>55420321
>Google

Right on, I start on the 18th. I won't be far from you
>>
>>55420334
I'm OP, (working at google)
almost tempted to be a tripfag in this thread

>>55420335
at mountain view campus? I'm in seattle
>>
>>55420342
Oh, Seattle? Did you graduate from uw too? Small world. I'm in California now
>>
>>55420360
nope, I'm actually from the east coast, I just wanted nothing to do with meme valley. I'd much rather live in kirkland
>>
>>55420342
no, I meant who is the rust guy?
>>
>>55420368
Right on, I don't like it much either. I'll probably only be here for 2 or 3 years then move somewhere that isn't a bubble.

Happy Independence Day, man.
>>
>>55420383
you too. i can watch the marina park fireworks from my porch here, its pretty sweet

>>55420380
haha oh shit sorry, its this guy
http://os.phil-opp.com/
>>
>>55420342
Do eet feggit
>>
>>55420402
way to kill the thread creep
>>
>>55420383
>>55420380
do you ever use IRC, if so, what nets/chanels
>>
>>55420582
I'm on rizon a lot for weeb stuff
>>
>>55420617
what kind of weeb? gintama or yuru yuri
>>
>>55419392
bumping a gud thread
Thread replies: 38
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.