Assembly Code Executing Script

If you are coding in assembly language in linux and not using any IDE then this post worth reading.

We have stared a new semester in our computer science and engineering graduation. Most of this semester’s courses very important for a computer engineer and should be added another adjective bit difficult. One of those is assembly. Course instructor’s recommendation is to compile and run the code in linux using nasm.

Using no IDE, it is very boring to code. As each time any edition in source file, have to type command to compile and link and finally execute the code. if error occurred then again type command for debugger. Have to waste time for typing commands. In time of programming this is not any programmer willing to do.

Then the universal scripting theory

Linux + Lots of commands + Same commands again and again = Shell Script

And

Linux + Lots of commands + Same commands again and again + Bit different for each file = Shell Script that generates Shell Script for each file.

So I worte a shell script that generates shell script for each .asm file in the current directory. This is my first long shell script.

Script:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s