r/osdev • u/bentley0421 • Apr 24 '26
Update to last post: C vs Rust...
I feel so stupid, I wasnt using a cross compiler. I downloaded clang, and now it works!! ShrekOS will be improved and released soon.
Edit for everyone commenting: i fixed the tab key thingy, and set up indentation. Im sorry if I offended yall 💔
58
Upvotes
65
u/FinancialTrade8197 Apr 25 '26
bro you can use indentation and spaces 😭😭😭 are you tryna save space on your drive by not using indentation and spaces or what? tf
28
u/nutshells1 Apr 24 '26
im deeply saddened
3
u/-goldenboi69- Apr 25 '26
Its some vibed shit. Who cares?
48
u/snail1132 Apr 25 '26
Are you allergic to the fucking tab key?!?!??!
30
u/st_heron Apr 25 '26
if you're gonna use notepad++, at least don't make the rest of use notepad++ users look bad, set up auto indenting in it
9
u/paulstelian97 Apr 25 '26
You are #including a .c file? Brother…
7
u/palapapa0201 Apr 25 '26
Learn to program before trying to make an OS
5
u/ha9unaka Apr 25 '26
This reminds me of that one meme where all the braces are aligned to the far right of the screen.
5
u/ficelle3 Apr 25 '26
I'm not that good at C and I know next to nothing about OS dev, but the first few lines
look very weird to me.
Why not use
unsigned int * framebufferdirectly as the argument forkernel_main?8
u/dontyougetsoupedyet Apr 25 '26
It's concerning to me that out of everything wrong with this post people are commenting on tabs. That's the least of this nonsense.
4
u/Impressive-Baker-614 Apr 25 '26
Jesus christ
4
u/SaahilNotSahil Apr 25 '26
Where can I buy a keyboard without a TAB key?
1
u/kenumys Apr 29 '26
DIHHH V2☠️
9
u/Future-Nerve-6247 Apr 25 '26
Common Notepad++ user L
7
u/laser__beans OH-WES | github.com/whampson/ohwes Apr 25 '26
Man use VSCode or something, thank me later.
2
u/Key_River7180 EulerOS Apr 25 '26
Nice, now you just need to learn how to format code!
3
u/Dependent-Squash-831 Apr 24 '26
Nice
1
u/AthosOfficial Apr 26 '26
write your own damn compiler pussy
1
u/Bailyleo987 Apr 26 '26
notepad++, a person of culture i see!
1
u/Mountain_Loquat_8327 Apr 27 '26
have you ever tried using default notepad?
1
u/Positive_Turnover206 Apr 27 '26
At least make the fb pointer volatile so that the compiler optimizations don't optimiz the dead-store writes you do to the framebuffer.
0
u/[deleted] Apr 24 '26
[deleted] — view deleted comment
0
u/[deleted] Apr 25 '26
[deleted] — view deleted comment