![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 1
Rep Power: 0
![]() |
binary compiler?
Hello readers, I was wondering if anyone knew about any current binary compilers that turn written binary code into .exe's or unix files. I want to do this because I am pretty confident I can write SMALL programs in binary such as calculators,etc. I'm just wanting to do this so I can have the pride in it.
thx for reading. Jeff. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
There is no such thing.
As of the current Computational Standards, there isn't a single Programming Language on Earth that is lower level than Assembly. And it's hard enough to code shit like a Calculator in Assembly anyway with user input and all. If you could get down to the Binary level, it'd take nine billion lines of code to get an addition. Well, okay, that's not ENTIRELY true, it's actually possible to code in Native code AKA Machine Code, and yes, it can be done actually, but it's ridiculously stupid to do anyway because you have to take the long way around and go through a lot of hacks in your code to make the Machine code readable by humans, and because it's readable by humans, it's possible to code in it. Writing ASCII readable machine code is for very specific things only like writing Polymorphic Shellcode that can slip past an IDS for example, but that's just a small rant I'll stop right now. Assembly is the lowest language you'll be able to code in, and it's fast and sexy, you should definately learn it. You'll look back on this and laugh because you're so 1337 with your Assembly knowledge. |
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
You could always open up a hex editor and start typing, if you really want to do this...
|
|
|
|
|
|
#4 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 5
![]() |
Coding in binary would make your coolness factor shoot through the roof. Not doing it regularly, but just knowing how.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials. --WilliamSChips on Slashdot |
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
"Coding in binary" is essentially just coding in machine code. There's no way to code at the level of microcode invoked by the machine instructions. If one consideres a pure assembler language (without high level constructs, macros, and so forth), it's merely a set of mnemonics representing op codes and operands. The binary value 0011 1110 0000 0001, for instance, will place the value "1" in the accumulator of a Z80 processor. Expressed as hex, that would be 3E 01. Mnemonically, it's LD A, 1. The 3E is the opcode whose pattern gates the gates that will clock a value (specifically, the value in the byte immediately following the opcode) into the A register. The following value is the operand. It's an example of an "immediate" reference, which means the value is embedded right into the instruction stream. A "direct" operation would mean that the address of the value is in the instruction, not the value, itself. An "indirect" operation would mean that another location (not the operand) contains the address of the value to use. That could be another register or another memory location.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#6 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 5
![]() |
Note that when I say "coding in binary" I mean writing your program with a hex editor.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials. --WilliamSChips on Slashdot |
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Ahhhhhhh, strictly speaking that would be a textually-encoded (probably ASCII) hexadecimal representation of the binary values. You don't want to hear about true binary programming, which involves a switch for each bit on the address/data bus, a switch to select whether you're going to enter an address or data, a switch to step the address, and a switch to load the data. That is how we used to boot the machine -- enter enough code to tell the machine how to read a paper tape, feed a paper tape that had enough code to tell the machine how to read mag tape, then read the appropriate program in off mag tape. The word, "boot", comes from that process, as in lifting oneself up by one's bootstraps
. Foisting such worthless drivel off on others is one of the few joys of being aged.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#8 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 5
![]() |
:-P
The coolest thing would be to get a magnet small enough to manipulate individual bits on the hard drive, and do stuff with that.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials. --WilliamSChips on Slashdot |
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
That's called a "read/write" head. Even on the old digital tape machines, which had MUCH larger magnetic transitions than modern hard drives, the gap in the head which laid down the magnetic transitions was around 200 microinches wide. Getcher hands on a 400x microscope and make sure yer notta tremblin'
.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#10 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Aww yes, you have also worked with the awful punch cards then? Oops I dropped them..
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|