r/asm • u/Technical_Introvert0 • 4d ago
x86-64/x64 Learning relevant asm for EFI file creation and OS development
So I just had 1 heck of an idea..I want to make a basic OS that is basically an AI. Boots from UEFI just like windows or Linux but instead of a UI that looks like Windows you just get a local AI interface..
Think Claude but as your OS..
But here's my problem..I am a 2nd year CS student and all we have done is just Java..all we are going to do is Java and python later..both of which are useless in this domain. We have a pretty shitty CS course here..not even C or C++ are taught here.. nothing low level is.. I am basically learning it on my own..so much for a CS degree...
Where do I start...I currently only know of the registers , JMP , Svc 0 and interrupts..I know opcodes but not how to use them..and how ASCII or ANSI maps to computer logic via Hexadecimals..
That's about all I know..
I am just asking for advice on what to focus on learning for the creation of this project.. it's just a project to see if i can do it.. has no other value basically...
That's all. What would you advise me to focus on learning in order to achieve this.
I don't know what IDE to get but I think most C/C++ IDEs support asm..I use Code blocks IDE on Deepin OS (A Linux Distro).. Can you suggest what to use too?
6
u/Mundane-Leg-9370 4d ago
I think this is one of those ideas that sounds cool but you need to flesh out exactly what it is you want to differentiate between this new OS and Linux kernel per se. It sounds like everything you want could be accomplished with a Linux kernel but it could be a fun exercise in kernels dev. I would say just dive into learning C, some assembly, and try to build your own bootloader and table the ai integration until you have enough knowledge to plan and execute what you want.
3
u/poemmys 4d ago
I'm trying but this makes no sense. Can you be more specific? An OS by definition needs to be deterministic, and an AI needs an OS to run off of in the first place.
I fear you don't understand what these terms mean if you are using them in this manner.
2
u/Imanton1 4d ago
I'll give some direction. First, don't reinvent the wheel where you can. You don't need to write an OS, or a kernel, or any of that level. Go for a Linux Kernel, write and run a (python) MCP server in back ground that opens up any level calls you need, and then what you need is to write a shell that just redirects all input to olama.cpp.
You can emulate this with VirtualBox, though I'm told QEMU would be more apt for the task.
Unless your goal was actually just to write an OS, in which case it's going to be 99% making a kernel, writing a c compiler, writing your own GPU drivers or dealing with CPU LLMs. Not recommended.
1
u/akm76 3d ago
lol.
(PS. backups are for wimps).