Coding a Virtual CPU in C

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

Комментарии • 92

  • @energy-tunes
    @energy-tunes Месяц назад +30

    Dude you're dropping all these amazing projects left and right literally cant keep up 😅

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +9

      Hehe, lucky I managed to reduce it to just 4 hours this time then :D

    • @gabriel-x7x9g
      @gabriel-x7x9g Месяц назад +3

      @@dr-Jonas-Birch I love your channel. I'm learning C so much. Couldn't find another channel like yours. You are awesome, dr.
      I wish there were more people with your expertise doing what you do.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +5

      @@gabriel-x7x9g There will be a lot of ppl with my expertise soon enough (when ppl watch my chan and learn) :) Take care, JB

  • @zencifare1902
    @zencifare1902 28 дней назад +2

    sir, I can not tell you how helpful the videos are. thank you so much!!!!!

  • @diyanmaner1306
    @diyanmaner1306 Месяц назад +2

    Jonas is becoming dangerous day by day 😂
    Btw you create great videos ❤

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      thanks di, that is very kind. glad u like em, JB

  • @hw7channel571
    @hw7channel571 Месяц назад +4

    Wow! Great project tutorial that I should have get when I am a undergrad student.
    Thanks JB. More health to you.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      You're very much welcome hw. More health to you also. JB

  • @userjm-my9hn
    @userjm-my9hn Месяц назад +3

    Thank you as always dr birch these videos are amazing, purchased your courses on udemy to support because these lessons are so valuable, thank you!!

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      I'm very happy to hear that user. Thank you, JB

  • @Suviiii69
    @Suviiii69 Месяц назад +2

    Oh my god ! I literally gasped❤ youre so taleneted proffessor ! Thankyou so much 🫶🫶🫶🫶🫶😭

  • @walidoulondon8107
    @walidoulondon8107 Месяц назад +2

    You deserve a million subscribers ❤

  • @Abhishek_Ahirwar2024
    @Abhishek_Ahirwar2024 Месяц назад +2

    Really your work is appreciable 🎉🎉🎉🎉🎉

  • @abraham4124
    @abraham4124 Месяц назад +1

    This is what I was thinking about today. Thanks for the video.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      You are very much welcome abraham. Take care, JB

  • @YogendraJagat-tw1xy
    @YogendraJagat-tw1xy Месяц назад +2

    I love your work sir excellent 👌👌

  • @francoislepron2301
    @francoislepron2301 Месяц назад +1

    Great work. You can follow your awesome tutorial by building a PDK (Peripheral Development Kit) where you simulate the behaviour of any peripherals each clock cycle and when you execute either a Load or a Store instruction in the I/O memory map.

  • @DeeN-z7z
    @DeeN-z7z Месяц назад +1

    You are magician

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      Hehe thank you deen for these kind words :) JB

  • @backendtower6580
    @backendtower6580 Месяц назад +2

    haha motivation! Im gonna wrap up the quickly so i get to this part KUDOS

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      hehe you're welcome backend, take care. JB

  • @lyf2403
    @lyf2403 Месяц назад

    You are appreciable doc ❤

  • @ru2979
    @ru2979 Месяц назад +1

    😳🙇🏼🔥Goldmine again

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      Hehe ru, thank you. I'm glad you like my stuff :D JB

  • @its_code
    @its_code Месяц назад +1

    ❤❤❤❤❤ amazing 👏 🤩

  • @diegoaredes2721
    @diegoaredes2721 Месяц назад +1

    The goat 🐐

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      Thank you very much diego. I'm happy you appreciate my content. JB

  • @Devva03
    @Devva03 Месяц назад +2

    Please tell me whether I have to study whole CSE or not if I want to make these cool projects like you.
    If not, what should be my roadmap for this much low level programming. Thanks.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      im currently working on a such roadmap actually, JB

    • @Devva03
      @Devva03 Месяц назад +1

      @dr-Jonas-Birch Really waiting for your roadmap sir. Thanks.

  • @Bruh-rw9yi
    @Bruh-rw9yi Месяц назад +1

    Sir, I have to ask that how do you retain such vast knowledge.I feel like I am forgetting stuff everytime I study.So how you are able to retain this much? Can you please tell me sir.
    Thank you so much

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      Hi bruh. It's quite easy actually, I torment myself :D For instance, if I'm trying to code something and I can't remember how to do it, in that case most ppl would google without thinking much about it. I never do. I force myself to figure it out, even if it takes hours. I usually succeed just by trying different things until I get it right. However, I will never forget that thing again.
      I've been doing this every time I get stuck for the last couple of years. And now I know several programming languages by heart, at least C and Javascript/Typescript. And I mean the whole language, every function. JB

    • @Bruh-rw9yi
      @Bruh-rw9yi Месяц назад

      Thank you so much sir.Your long videos are valuable for students like me.I also liked how when you are stuck you try not to google and instead work out the answer for yourself.I also started to do that and it feels so good.BTW thank you so much sir for taking your time to reply and uploading such good content.

  • @BuddhuGyanni
    @BuddhuGyanni Месяц назад +2

    Good morning from India it's morning 5:30

  • @johnsteve1276
    @johnsteve1276 Месяц назад +1

    Yes sirrrrr~

  • @vinayakpundhir
    @vinayakpundhir Месяц назад +1

    Hello doc, any possible project on building a very basic kernel in c?

    • @gabriel-x7x9g
      @gabriel-x7x9g Месяц назад +3

      damn, it would be awesome. OP project. Next, I would like to see "building your own operating system in C" xD
      Nobody does that!

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +3

      its been done all around and its hard to find a unique angle without really coding a complex os. plus its repetetive work in setting up ints and segments and frames. im not sure i can make it fun, JB

    • @gabriel-x7x9g
      @gabriel-x7x9g Месяц назад

      @@dr-Jonas-Birch Oh, I see. I understand it.

  • @mihir.mishra
    @mihir.mishra Месяц назад +2

    Sir I had a question, what are the must to learn mathematics concepts/subjects for software engineering?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      unless you gonna do crypto its enough with middle school maths, JB

    • @mihir.mishra
      @mihir.mishra Месяц назад

      @dr-Jonas-Birch Thanks sir.

  • @Brad_Script
    @Brad_Script Месяц назад

    switch doesn't actually support ranges in C, the "..." thing is a gcc extension

  • @adeshbhore5501
    @adeshbhore5501 Месяц назад +2

    Hey JONUS 😊 can you please upload some fundamentals or base for this kind of project ...... to understand it better 🙏 🙏

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      hm check out my assembly school perhaps, JB

    • @adeshbhore5501
      @adeshbhore5501 Месяц назад +1

      @dr-Jonas-Birch hey thanks for reply 😊 ,, also 1 request to please arrange the c Playlist in proper manner as it looks jumbled and getting confused where to start from ......or suggest any specific videos

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      @@adeshbhore5501 yes its on my todo

  • @ALG397
    @ALG397 Месяц назад +1

    Hello,
    Is it possible for a virtual processor to run faster than the processor it is running on? This is of course if we build a virtual processor that runs faster than the real processor our virtual processor is running on
    If it is impossible, what is the purpose of programming a virtual CPU?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      you might wanna run multiple operating systems for instance. or you wanna make it more secure by hiding it with tougher firewall settings. you wanna run a Tor hidden service without it leaking information. the possibilities are endless. i guess you could make your vcpu faster than the real cpu if you come up with a really smart way to optimize the processes. but its not likely, JB

    • @ALG397
      @ALG397 Месяц назад

      @@dr-Jonas-Birch "you might wanna run multiple operating systems for instance" This means that this virtual CPU is a virtual machine that allows us to run programs inside other operating systems (such as Oracle virtual machine)
      "you wanna run a Tor hidden service without it leaking information" Is it possible to complete the lessons about the vcpu with an explanation of what you mentioned.
      Because I did not understand how to do that.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      @@ALG397 ive only done 2 episodes yet. when the series is done you will. -JB

  • @lancemax857
    @lancemax857 Месяц назад +5

    I didn't know that C is this powerful.

    • @R_eal-G_rude
      @R_eal-G_rude Месяц назад

      @@lancemax857 this is also possible wirh other languages lol

    • @lancemax857
      @lancemax857 Месяц назад

      @@R_eal-G_rude I began my programming career on High Level things like REST and web app. I just started my journey on low level stuff a month or 2 ago. So yeah. Hahaha.

    • @distortions
      @distortions Месяц назад

      lol

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      lance, C is as powerful as its programmer :D C can do literally anything. JB

  • @notaras1985
    @notaras1985 Месяц назад

    What's the difference of C with VDHL language at programming CPUs? Thanks for your help.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      you and me hitting dubai together after i collect my first YT mil

  • @DeeN-z7z
    @DeeN-z7z Месяц назад

    How to do binary translation of windows on arm processer?

  • @chry003
    @chry003 Месяц назад +1

    Can we do same with gpu? I was trying this a few time ago, but I just don't know what is the best way to do it, like I want it to be good enough so that I can write opengl code for the virtual GPU, I saw a RUclips video about it, but that is not what I wanna do I think, I wanna make it in a way that I don't have to deal with Linux kernel and qemu.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      Yes you can code a virtual gpu. I don't know the first thing about them though. JB

    • @chry003
      @chry003 Месяц назад +1

      @dr-Jonas-Birch yes, surely we can code it, but how can we do.. Hardware acceleration part virtual.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад

      @@chry003 Well it's not possible to do that in software on a general-purpose cpu (for obvious reasons) so you would have to either utilize the host machine's gfx card or use special asic hardware. JB

  • @juniordataengineer
    @juniordataengineer 26 дней назад +1

    Do you keep a github repo for these ?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  25 дней назад

      repo.doctorbirch.com
      check out the birchvm folder

  • @tandomrandom
    @tandomrandom Месяц назад +2

    Can we say virtual cpu basically as an emulator?

  • @lookatrobot
    @lookatrobot Месяц назад +1

    i need your help, can u develop "Firewall Simulation" in C++ ?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      I can't even code hello world in cpp, sorry. And we dont need simulations, soon we have the real thing :) JB

    • @lookatrobot
      @lookatrobot Месяц назад

      @@dr-Jonas-Birch if u don't fimiliar with C++, can u develop it in C instead?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Месяц назад +1

      @@lookatrobot yea but itll be the real deal, no simul

    • @lookatrobot
      @lookatrobot Месяц назад

      @@dr-Jonas-Birch fine, this could be more better than simulation.

  • @user_7934
    @user_7934 Месяц назад +1

    Do you have a git repo of your projects?

  • @fansspost3525
    @fansspost3525 Месяц назад +1

    c language is grandfather for another language so we have to learn it

  • @Miko99gf
    @Miko99gf Месяц назад +1

    Will programmers be replaced by AI?😢