hi, i have been wondering, after the compilation of a textual source file, it is said that it is compiled to ones and zeros, i wonder what are those ones are zeros, are they visible to eyes? for example if i open it with notepad can i display them? if i can not ever display them then in what sense(if not visual) are they ones and zeros. Thank you.
serkan sendur 821 Postaholic Banned Featured Poster
Recommended Answers
Jump to PostI can't decide if this is a joke or not. Anyway, the easiest way to look at the machine code (what people typically mean when they talk about "ones and zeros") is with a hex editor. Some hex editors even give you a binary view.
Jump to PostRegardless if this is a joke or not, zeros and ones don't exist! IMHO A hard disk stores levels of "magnetism" which correspond to levels of "voltage" (mostly 0 and 5 volts) When a computer "reads" this is what you could call a "bitstream". It depends on the programmer how …
Jump to Postthis is not a joke, i create executables with GNU gcc compiler, when i open that executable with notepad i dont see zeros and ones but i do see some absurd set of characters. why do i see them?
You don't see them because "1" and "0" are just the …
Jump to PostYou need a hex editor as mentioned, like
http://www.softcircuits.com/cygnus/fe/
You just convert the hexadecimal bytes to binary in your head.
Jump to Postwhat is the reason for the editor to display hex but not bin? how it is useful?
Which would you rather call out over the phone, a long string of binary numbers or a short string of hexadecimal numbers?
All 19 Replies
Narue 5,707 Bad Cop Team Colleague
ddanbe 2,724 Professional Procrastinator Featured Poster
serkan sendur 821 Postaholic Banned Featured Poster
serkan sendur 821 Postaholic Banned Featured Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
serkan sendur 821 Postaholic Banned Featured Poster
MosaicFuneral 812 Nearly a Posting Virtuoso
Colin Mac 53 Posting Whiz
serkan sendur 821 Postaholic Banned Featured Poster
Colin Mac 53 Posting Whiz
serkan sendur 821 Postaholic Banned Featured Poster
Colin Mac 53 Posting Whiz
serkan sendur 821 Postaholic Banned Featured Poster
Fest3er 39 Posting Whiz in Training
serkan sendur 821 Postaholic Banned Featured Poster
orwell84 7 Junior Poster
michinobu_zoned 0 Light Poster
winrawr 9 Junior Poster
serkan sendur 821 Postaholic Banned Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.