Java for Fucking Idiots: Learn the Basics of Java Programming Without any experience!


code . 3. Steve’s computer runs that machine code so he can enjoy his fresh memes. So, Steve’s source code (human readable) is compiled



Download 3,91 Mb.
Pdf ko'rish
bet2/70
Sana02.04.2022
Hajmi3,91 Mb.
#524999
1   2   3   4   5   6   7   8   9   ...   70
Bog'liq
Java for Fucking Idiots

code .
3. Steve’s computer runs that machine code so he can enjoy his fresh
memes.
So, Steve’s source code (human readable) is compiled by a compiler to
create machine code (machine readable). And the machine code is what
runs on the computer.
It’s like hiring a translator to speak to someone in a different language.
Source Code -> Compiler -> Machine Code
“Computer, add 2 and 2 please” -> Compiler -> “01100110101”
Make sense?
You write source code, a compiler turns it into machine code, and the
computer runs that machine code. Get it into your thicc skull (two c’s).
Compiling interest
Now, there is a part I left out. You see, machine code is created specifically
for the CPU of a computer.
At this point your eyes are probably about to roll into the back of your head.
Either because you know what this is already, or you’re already confused.
Bear with me.
For those of you out of the loop, the CPU (central processing unit) is the
brain of the machine that does all the hard work. Some people call it the
“chip” or the “processor”. Doesn’t matter what you call it, for all I care you
could call it the doorknob.
Anyways, so we create machine code to run on a computer’s
processor/CPU. What would happen if we gave that machine code to a
different computer?
More specifically, what would happen if I write some code, compile it into
a program to run on my computer (with processor A), then give it to my
friend to run (with processor B)?


Hmm. I write code and compile it for processor A….my friend has
processor B…I guess it will work! Yeah, programs are smart and just work,
it’ll be fine!
NO, the answer is that it won’t work !
Imagine writing a novel in English and hiring a professional to translate it
into Spanish. Would you expect someone who only speaks Swedish to
understand the translator’s product?
Unfortunately for us, CPUs read specific kinds of computer instructions
thanks to how they’re architected. Processor A needs different instructions
than Processor B.
How can we solve this? Death? Maybe!
More realistically, I will need to compile my program for processor A, then
compile it for processor B, then make sure the right version of the program
is given to the right computer.
“Well that sucks!” – Randy Marsh

Download 3,91 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   70




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish