Live data from Hacker News

x86 Bare Metal Examples

github.com

21–30 of 59 posts

Re: x86 Bare Metal Examples

#21

Using BIOS calls doesn't seem to be really "bare metal". One could use bios interrupt to read data from a disk, or also one could use memory mapping with a target device to write a device driver that could request the file. I find the second case a "bare metal" approach. Fortunately most of the bios examples are using bios_* filenames. Rest of the files are very nice.

One could follow this "toward the bare metal" way as long as he wish. E.g. in Silego GreenPAK chips a CPU is considered unneeded abstraction and you program the raw state machine.

Re: x86 Bare Metal Examples

#22
post #6
post #2

What is the use-case in real life ? Is it to run special lab/factory equipment ? Anyone here who develops for bare metal - can you share any details?

A dream I've had for a long time is to make an application that you boot into, which is the only application on the computer, for maximum optimization. Upgrades would be easy, just reboot the computer and load the new software. Wouln't write everything in assembly though.

The problem comes when you need to use any kind of hardware, all the drivers would have to be part of your app. The "unikernel" concept however does some version of this: loads a kernel which only supports the minimal amount of functionality and drivers needed and with only a single address space for a single app.

Re: x86 Bare Metal Examples

#23
post #4

I'm kind of curious who's behind this Ciro Santili guy. He(?) seems to be doing a ton of interesting github repos, a great deal of informative stackoverflow answers and who knows what else. Also, some anti-CCP stuff in the profile?

If you have any specific questions, fire away :-) Homepage + social media links from there should give a good idea of who I am: http://www.cirosantilli.com

I'm curious. Why did you learn Chinese, but not Rust or Haskell yet?

And yes, I agree with https://github.com/cirosantilli/china-dictatorship And that speaking Chinese is much simpler than reading or writing in it. One of the simplest languages actually.

Re: x86 Bare Metal Examples

#24
post #6
post #2

What is the use-case in real life ? Is it to run special lab/factory equipment ? Anyone here who develops for bare metal - can you share any details?

A dream I've had for a long time is to make an application that you boot into, which is the only application on the computer, for maximum optimization. Upgrades would be easy, just reboot the computer and load the new software. Wouln't write everything in assembly though.

Besides what everyone is commenting on, this is how Amiga, Atari ST and most console games used to be done.

Re: x86 Bare Metal Examples

#25
post #23

Earlier quoted context omitted.

If you have any specific questions, fire away :-) Homepage + social media links from there should give a good idea of who I am: http://www.cirosantilli.com

I'm curious. Why did you learn Chinese, but not Rust or Haskell yet? And yes, I agree with https://github.com/cirosantilli/china-dictatorship And that speaking Chinese is much simpler than reading or writing in it. One of the simplest languages actually.

Alas, I'm married to a Chinese woman, and not Graydon Hoare :-)

Re: x86 Bare Metal Examples

#26
post #23

Earlier quoted context omitted.

I'm curious. Why did you learn Chinese, but not Rust or Haskell yet? And yes, I agree with https://github.com/cirosantilli/china-dictatorship And that speaking Chinese is much simpler than reading or writing in it. One of the simplest languages actually.

Alas, I'm married to a Chinese woman, and not Graydon Hoare :-)

Interesting. I have to admit I have stereotype and prejudice, any westerner married to Chinese woman is pro-China. I see you have some sensitive Chinese word in username in different community, so I thought it is a Chinese guy in Western country behind it.

Re: x86 Bare Metal Examples

#27
post #26

Earlier quoted context omitted.

Alas, I'm married to a Chinese woman, and not Graydon Hoare :-)

Interesting. I have to admit I have stereotype and prejudice, any westerner married to Chinese woman is pro-China. I see you have some sensitive Chinese word in username in different community, so I thought it is a Chinese guy in Western country behind it.

When your wife does Falun Gong, and her father spent a decade + in semi-prison during the cultural revolution, that tends to not bring out the brightest side of the Chinese Communist Party ;-)

Re: x86 Bare Metal Examples

#28
post #4

I'm kind of curious who's behind this Ciro Santili guy. He(?) seems to be doing a ton of interesting github repos, a great deal of informative stackoverflow answers and who knows what else. Also, some anti-CCP stuff in the profile?

If you have any specific questions, fire away :-) Homepage + social media links from there should give a good idea of who I am: http://www.cirosantilli.com

Where can I find the list of words that will trigger the FW? Does this work with Chinese characters only or do Western words can also do the job?

Re: x86 Bare Metal Examples

#29
post #4

I'm kind of curious who's behind this Ciro Santili guy. He(?) seems to be doing a ton of interesting github repos, a great deal of informative stackoverflow answers and who knows what else. Also, some anti-CCP stuff in the profile?

If you have any specific questions, fire away :-) Homepage + social media links from there should give a good idea of who I am: http://www.cirosantilli.com

Lots of good looking material in here. Thanks for sharing your knowledge.

Semi unrelated, what's up with the script tags on the profile page?

Re: x86 Bare Metal Examples

#30
post #4

I'm kind of curious who's behind this Ciro Santili guy. He(?) seems to be doing a ton of interesting github repos, a great deal of informative stackoverflow answers and who knows what else. Also, some anti-CCP stuff in the profile?

If you have any specific questions, fire away :-) Homepage + social media links from there should give a good idea of who I am: http://www.cirosantilli.com

Dang, while I'll appreciate your one compiled and one interpreted language way of life (pragmatic!), this makes me sad:

> Swift: I’m not an Apple person.

I'll admit, if I wasn't a professional iOS code slinger I probably never would have approached it, but at this point it's by far my favorite language to write (especially prototype) in.

Post reply on HN