Can you program an os in java with a kernel and bootloader written in assembly or c++ or something?
Why would you?
You need low level access to Input / Output ports, chip system only instructions, etc. High level languages do not do everything the assembly instructions do! In fact High level lanaguages are built upon a near majority, but not all of the processors instruction set!
On that posting!
"However, we do have around some assembly code. Like a kernel written in C, our C# kernel needs assembly code to handle the lowest part of the interrupt dispatch on the x86. But once the assembly code has finished, it dispatches directly into compiled C# (no C). BTW, there is some C code in the system, primarily for the debugger stub."
Usually when a C program is compiled into an executable
access to the file system and console I/O is performed
through the underlying operating system's API
using executable instructions intended for execution
on a particular architecture (like x86-32).
The executable format will be dependent upon the OS
involved as well, including any initialization routine
which the compiler includes with the executable.
Thus, a differ from the norm may be required when compiling
C programs for a custom OS.
It is completely possible to use inline assembly to call
your custom OS's API.
The study of operating systems is quite educational,
but an understanding of the architecture on which
they are based is a must.
and some kernels are written partly in assembly and
partly in a high level language.
Linux was written in C and uses assembly language
There are projects for kernels
written in ADA and C++.
Writing a kernel completely in assembly makes it
harder to port the kernel to another architecture.
This is one of few reasons for this consideration.
But yes, you do need assembly for low-level
access to the system registers,interrupts,
Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.
This is the result of previous question answered :
code for the listbox - datagridview interaction
At the top of the code ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Private Sub btn_addline_Click(ByVal ...