Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 1st, 2005, 5:10 AM   #1
lucky001101
Newbie
 
Join Date: May 2005
Posts: 1
Rep Power: 0 lucky001101 is on a distinguished road
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.
lucky001101 is offline   Reply With Quote
Old May 1st, 2005, 1:18 PM   #2
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 5 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
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.
Mad_guy is offline   Reply With Quote
Old May 1st, 2005, 1:44 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
You could always open up a hex editor and start typing, if you really want to do this...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 28th, 2005, 4:32 AM   #4
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 5 uman is on a distinguished road
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
uman is offline   Reply With Quote
Old Jun 28th, 2005, 8:23 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
"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
DaWei is offline   Reply With Quote
Old Jun 28th, 2005, 2:49 PM   #6
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 5 uman is on a distinguished road
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
uman is offline   Reply With Quote
Old Jun 28th, 2005, 3:29 PM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 28th, 2005, 4:19 PM   #8
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 5 uman is on a distinguished road
:-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
uman is offline   Reply With Quote
Old Jun 28th, 2005, 4:52 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 29th, 2005, 8:17 AM   #10
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
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
nnxion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:01 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC