An assembly language is a low-level programming language for a computer, microcontroller, or other programmable device, in which each statement corresponds to a single machine code instruction.

learn more… | top users | synonyms

-1
votes
0answers
40 views

Book Suggestion - Understanding Compilers [closed]

I have been doing software development in C and assembler for about 15 years. I would like to extend that knowledge by having a thorough understanding of various compiler flags and options. I know the ...
47
votes
7answers
3k views

How were the first compilers made?

I always wonder this, and perhaps I need a good history lesson on programming languages. But since most compilers nowadays are made in C, how were the very first compilers made (AKA before C) or were ...
42
votes
5answers
15k views

How can this all fit into 64kb?

So, I am here at assembly 2011 and there was this demo played: http://www.youtube.com/watch?v=69Xjc7eklxE&feature=player_embedded It's one single file only, it says that in the rules. So I ...
0
votes
0answers
19 views

How can we count the number of vowels in a string in assembly 8086? [migrated]

I want to count the number of vowels in an input string, written only in minuscules. My code is this one, but he doesn't count them right (the cmp instructions are never true) data segment s db ...
0
votes
0answers
41 views

(Intel) Assembly For 32-Bit Linux with GDB.

I'm a bit new at working with Assembly (and relatively new at programming in lower-level languages), but here's the main question I have: Question: If I am using Intel-syntax 32-bit Assembly for ...
3
votes
2answers
172 views

Implementing non-fixed length array support in a compiler

I'm thinking of building a language for PIC microcontrollers. I want to be able to use non-fixed size arrays, like this: Declare the variable as int[] Wait for input from serial connection Make the ...
0
votes
2answers
213 views

will an assembly language book for intel x86 processor be compatible with amd processors?

I'm wanting to get an assembly book to learn assembly, and was wandering if i get a book for intel x86 processor will there be any problems assembling the code on an amd processor?
11
votes
4answers
2k views

Why does Donald Knuth write TAOCP using assembly language?

I don't hate using assembly language, since I have written some in my os course. But obviously, assembly language lacks abstraction, you have to pay more attention to the details. Is assembly ...
0
votes
1answer
191 views

Frame Pointer Explanation

In MIPS assembly, there is a register for the stack pointer, and another register for the frame pointer. What is the frame ponter and what is its purpose. How does it differ from the stack pointer?
0
votes
2answers
113 views

Is a “build” assembly?

In an old book I have, they say that "build" is either a process of converting source code into executable or the actual result - assembly. Is that correct? Is a build actually the assembly, I mean ...
-5
votes
3answers
916 views

Java performance beats C++ and Assembly by a landslide [closed]

I am writing some small programs for a semester project that demonstrates the benefits of inlining assembly code into higher level languages (specifically into C++). I wrote a C++ program that uses ...
1
vote
1answer
289 views

Using assembly to write to a file

I am working with a trading application (reading data from the exchange) which generates a bucket load of data on a per second basis. We have different "log-levels" but even the minimal log-level ...
-1
votes
3answers
238 views

How can I get assembly from an EXE? [closed]

Pretty much my only question is the title. Other then that I want to see the code behind small EXEs but I know it's hard to get it to convert to something like c or c++ so why not get assembly.
3
votes
3answers
256 views

Is it possible to use GNU GPL for application that has no source?

I mean, it is possible to create application without source code - for example using HEX editor or some debugger that can assembly instructions (actually every decent debugger can). Creating programs ...
9
votes
4answers
732 views

I want to build a Virtual Machine, are there any good references?

I'm looking to build a Virtual Machine as a platform independent way to run some game code (essentially scripting). The Virtual Machines that I'm aware of in games are rather old: Infocom's ...
9
votes
5answers
692 views

Learning to Program in Assembly - Useful Resources [closed]

Following on from a previous thread, it has got me interested in learning a little about Assembly programming. Not so much for wanting to program useful apps in, just to get a feel for low level ...
5
votes
6answers
2k views

Purpose of NOP instruction and align statement in x86 assembly

It has been a year or so since I last took an assembly class. In that class, we were using MASM with the Irvine libraries to make it easier to program in. After we'd gone through most of the ...
3
votes
8answers
1k views

Is it worth making Visual Assembly?

We already have: Visual Basic Visual C++ Visual C# Why there is no Visual Assembly? Is it worth making it?
7
votes
2answers
469 views

Assembly Language being used in Aircraft System

Today my lecturer mentioned the reason why the aircraft system is programmed in assembly language is due to the program being written have less error . Is this statement true ? Because when he asked ...
3
votes
5answers
381 views

Are there such thing as assembly SDK's? [closed]

I've never worked in assembly, but I was just curious if SDK's exist for assembly programming. For instance, if I wanted to create a linked list, are there libraries available that have already done ...
1
vote
2answers
219 views

GCC: assembly listing for IA64 without an Itanium machine

I need to try the following thing: I would like to compile some simple C code samples and see the assembly listing generated by GCC for IA64 architecture, i.e. I just want to run GCC with the -S ...
59
votes
13answers
5k views

How Do Computers Work? [closed]

This is almost embarrassing ask...I have a degree in Computer Science (and a second one in progress). I've worked as a full-time .NET Developer for nearly five years. I generally seem competent at ...
3
votes
6answers
235 views

A question on nature of generated assembly in C++ and code Algebra

I wrote this code: #include <iostream> int main() { int a; std::cin >> a; if(a*a== 3){ std::cout << a; } return 0; } On MSVC I turned ON all ...
1
vote
1answer
373 views

What is the difference between Times and Dup in Assembly Language?

In a bootloader, the second last line is : TIMES 510-($-$$) db 0 Now, will this command also do the same : db 510-($-$$) DUP (0) If not why? I know what TIMES does, but its not mentioned ...
1
vote
1answer
229 views

Compiling OpenGL Assembly Language (ARB) assembly code

I have two questions to ask. If I want to code in ARB, what are the prerequisites I need to write the code? I have been using OpenGL and DirectX lately. I want to compile and run the ARB code. What ...
21
votes
12answers
3k views

Were the first assemblers written in machine code?

I am reading the book The Elements of Computing Systems: Building a Modern Computer from First Principles, which contains projects encompassing the build of a computer from boolean gates all the way ...
15
votes
8answers
1k views

Reverse engineering: what is it really good for? [closed]

I have some innocent/beginner questions: What is reverse engineering good for? As a programmer, should I learn the art of reverse engineering? What are the benefits to a programmer who is ...
33
votes
13answers
9k views

How have languages influenced CPU design?

We are often told that the hardware doesn't care what language a program is written in as it only sees the compiled binary code, however this is not the whole truth. For example, consider the humble ...
0
votes
0answers
203 views

Which programming language is Curiosity written in? [duplicate]

Possible Duplicate: What is the Mars Curiosity Rover's software built in? I only recently came across an article that stated there was well over 500,000 lines of code in Curiosity and I ...
8
votes
2answers
1k views

Is it true that “Real programmers can write assembly code in any language.”?

Real programmers can write assembly code in any language. (Larry Wall). As far as I can make out, Mr. Larry Wall is trying to say that to a real programmer any language can have the same ...
11
votes
2answers
421 views

Are some NOP codes treated differently than others?

I'm curious about this, let's say I have: 00000000001 90 nop 00000000002 90 nop 00000000003 90 ...
4
votes
3answers
256 views

What are some good ways to get familiar with .Net's IL?

I recently accepted a job where I will be working with the IL a lot(on the team of a certain obfuscator that's included with Visual Studio). They know I have little knowlegde of it, so I'll have ...
97
votes
18answers
22k views

How does learning assembly aid in programming?

I have been programming in higher level languages (Python, C#, VBA, VB.NET) for around 10 years and I have completely zero understanding on what's going on, "under the hood." I am wondering what are ...
12
votes
6answers
1k views

What came first, the compiler, or the source?

I'm curious about the birth of the compiler. How did programming begin? Did people first build hardware that recognized a certain set of commands, or did people define a language and then build ...
64
votes
7answers
27k views

Is this an assembly language?

In childhood I used to program on MK-61 soviet calculator. It had 4 operating registers (X, Y, Z, T) and 15 storage registers. Program could have 105 steps. As I recall it had commands like: swap X ...
5
votes
3answers
2k views

Small assembly language project for practice [closed]

I am learning assembly language for x86 architecture. But, i am unable to find any practice problems so that i can test my skills. Can you suggest me some practice problems or some small assembly ...
5
votes
7answers
704 views

Will hand-written assembly disappear? [closed]

Last week I was wondering, with compilers getting better and better at optimizing, will there be a point when there is no need for hand written assembly? Are there still specialized fields where the ...
29
votes
11answers
937 views

Is it wise for a high level developer to spend time studying assembly?

It is clear that the knowledge of low level stuff is very important in our work. But in a situation where you're already developing commercial software on a high level, and when you already have a ...
1
vote
1answer
175 views

Capitalization convention in assembly? [closed]

Is there any convention on what to capitalize in (x86) assembly? For example, which one of these 'looks best'? (Or maybe none of them do?) [BITS 32] %define MACRO 1 MyLabel: MOV EAX, 2 versus ...
7
votes
3answers
770 views

Mac OS Ⅹ Assembly Language Esoteria

I've been playing around with assembly and object files in general on Mac OS Ⅹ and was wondering if somebody could provide some edification. Specifically, I'm wondering what the extra code GCC ...
0
votes
1answer
207 views

Intel mnemonic to machine code converter library

I'm trying to do the following: take a single IA32 instruction in the Intel syntax (such as ADD EAX, EBX) and produce the corresponding machine code for this instruction. Is there some small library, ...
13
votes
7answers
3k views

What are some good open source c++ packages to study in order to learn advanced software construction?

I've heard that you should read 10 times more than you should write. This applies to both literature and source code. Therefore, I'd like to study the best c++ packages we've developed. I'm ...
13
votes
4answers
1k views

Is Assembly still relevant?

Are there major differences between assembly language and higher level languages when it comes to coding and/or managing projects? Obviously it takes more statements in assembly language to carry out ...
0
votes
10answers
493 views

Assembly in a research paper

I am doing a research paper on programming, and I need to somehow explain assembly... I've never learned the language, but I understand what it is used for and kinda what it looks like... MOV A,47 ...
6
votes
7answers
788 views

What can we learn from inactive assembly languages? [closed]

There are still groups of programmers who support old microprocessors, e.g., Z80, 6510, 68000, etc. What can we learn from old assembly languages at a time when functional programming is becoming ...
12
votes
5answers
685 views

Advice for an ambitious student on building your own kernel

I'm a very ambitious university student who wishes to learn pretty much everything there is to know about computers (bash me if you want, I love learning). Recently I thought it would be a fun project ...
9
votes
8answers
2k views

Should I include `assembly` as programming language in the CV?

In the answer for one question someone wrote that assembly is not a language, it's a process. I tend to agree, since the assembly "language" is dependent on the architecture it will run on, which may ...
6
votes
2answers
837 views

How can I practice ARM assembly on a Windows PC?

I'm interested in finding software that will allow me to play around with ARM assembly instructions on my Windows PC. Ideally I'm imagining something like python's command shell. I'd like to type in ...
7
votes
6answers
1k views

How exactly do we go from Binary/Hex to Assembly Instruction sets?

So i've been trying to learn some Embedded/Assembly programming for a bit here lately, as well as going far as trying to learn the lowest level (gates and such). One thing puzzles me though....is how ...
9
votes
4answers
3k views

Is there a canonical book on x86 assembly?

There are lots of books on assembly. However, they usually deal with ISAs about which I don't care, such as MIPS or ARM. I don't deal with these architectures; there's no reason for me to try to learn ...

1 2