Assembly vs C programming


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Assembly vs C programming
# 1  
Old 09-12-2006
PHP Assembly vs C programming

I am currently looking into an os on developed on an x86 platformwhich contains certain assembly code written in .s files(NASM- compatible ) instead of using C I was wondering why C could not be used to do low level stuff instead? Do anyone have any idea or could enligthen me?Appreciate any help offered

rgds,
duoshock

Last edited by duoshock; 09-12-2006 at 11:47 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Understanding Assembly Code

As the title suggests, I want to better understand the following assembly code: section .text global main ; must be declared for linker (gcc) main: ; tell linker entry point mov edx, len ; message length mov ecx, msg ; message to write... (2 Replies)
Discussion started by: Azrael
2 Replies

2. Homework & Coursework Questions

Sparc Assembly

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am having a hard time with this assignement i cant get the pfib value to print out the fib sequence. ... (1 Reply)
Discussion started by: kenjiro310
1 Replies

3. Programming

vga assembly question

Im trying to make a vga program for linux Im wondering if anyone knows of a simple document on the subject or if someone could show me some basics. What system calls should I use what parameters should I give them. How do I draw a line of pixels green after in vga mode. I prefer nasm but I can use... (2 Replies)
Discussion started by: Errigour
2 Replies

4. What is on Your Mind?

Can assembly language be dispensed with ?

Hi. I learned C in high school and am proficient in it:D. At the college while learning microcontrollers there was a short course on assembly language which I skipped:p but had no trouble as most of the application programming had to be done in C. Should I go back n learn assembly language as I... (9 Replies)
Discussion started by: priyadarshianu
9 Replies

5. Programming

Assembly 8085

Hi eneryone, Im trying to learn about assemply 8085 in order to make a project i have. First of all which emulator to use? I work in linux and I currently istalled GNUSim8085. Also, maybe somewhere I can find some simple examples? The project is about making an array saved in specific... (8 Replies)
Discussion started by: giampoul
8 Replies

6. Programming

Ok i have a small assembly question

I have this small program that runs with the flat assembler. My problem is that at the receive line function it receives the line and if there isn't a $ typed at the end of the user input the program displays a lot of strange stuff, sometimes beeps and then it seems to terminate without causing any... (13 Replies)
Discussion started by: Errigour
13 Replies

7. Programming

Why Assembly Language?

Hi guys, Assembly language is a low level language designed in 1950's, both system and application programs were written in assembly at that time. There is no question of assembly being very effecient compared to the other high level languages. But it is very cumbersome to write programs in... (9 Replies)
Discussion started by: gabam
9 Replies

8. Programming

Fibonacci (assembly)

When i run this with gcc filename.s -o filename. It is giving fatal error: Unknown opcode at define registers. Anyhelp will be appreciated .section ".data" prompt: .asciz "\nThis program prints the Fibonacci sequence" prompt2: .asciz "\nEnter a limit on the largest number to be displayed:"... (2 Replies)
Discussion started by: Learnerabc
2 Replies

9. Programming

Help with assembly code

I want make simple assembly code for some thing like this a^6+6a^2+2a and range of a is between -3 to 3. I tried but it is not working properly. As this is my first assembly program that I am going to try, I want some help with it. I found this example online but i dont want this kind of... (2 Replies)
Discussion started by: Learnerabc
2 Replies

10. Shell Programming and Scripting

Unix assembly help

Hey guys, well I'm extremely knew to Unix so any help advice is very appreciated. What I am trying to do is assemble a source code (Programming from the Ground Up: Chapter 3: Your First Programs) The source code named "FINDING A MAXIMUM VALUE" is the code I am trying to link and run, but I... (1 Reply)
Discussion started by: ac09
1 Replies
Login or Register to Ask a Question
al(1)							      General Commands Manual							     al(1)

NAME
al, al2 - Mono Assembly Linker SYNOPSIS
al [option] [source-files] DESCRIPTION
AL is the Mono assembly linkder. This linker is used to put together assemblies from a collection of modules (.netmodule files), assembly manifest files and resources. Do not confuse this with the monolinker, which is a tool to reduce the size of assemblies based on the code used. Use al for processing 1.0 assemblies, use al2 to process 2.0 assemblies. OPTIONS
@<filename> Read response file for more options. -algid:<id> Algorithm used to hash files. The <id> must be specified in hexadecimal. -base:<addr> | -baseaddress:<addr> Base address for the library. THIS FEATURE ISN'T IMPLEMENTED. -bugreport:<filename> Create a 'Bug Report' file. THIS FEATURE ISN'T IMPLEMENTED. -comp:<text> | -company:<text> This inserts the company name into the assembly metadata. This is equivalent to adding the [AssemblyCompany ("<text>")] attribute into C# source code. -config:<text> | -configuration:<text> This inserts the configuration string into the assembly metadata. This is equivalent to adding the [AssemblyConfiguration ("<text>")] attribute into C# source code. -copy:<text> | -copyright:<text> This inserts the copyright message into the assembly metadata. This is equivalent to adding the [AssemblyCopyright ("<text>")] attribute into C# source code. -c:<text> | -culture:<text> This inserts the supported culture into the assembly metadata. This is equivalent to adding the [AssemblyCulture ("<text>")] attribute into C# source code. -delay | -delay+ | -delaysign | -delaysign+ The generated assembly will be delay signed. This is equivalent to adding the [AssemblyDelaySignAttribute (true)] attribute into C# source code. -delay- | -delaysign- The generated assembly will be fully signed (i.e. not delay signed). This is the default option when signing (-keyfile or -key- name). -descr:<text> | -description:<text> This inserts a description of the assembly into the assembly metadata. This is equivalent to adding the [AssemblyDescription ("<text>")] attribute into C# source code. -e:<filename> | -evidence:<filename> This embed into the assembly the specified file as assembly security evidences. -fileversion:<version> Optional Win32 version. This overrides the normal assembly version. -flags:<flags> Assembly flags. The <flags> must be specified in hexadecimal. -fullpaths Display files using fully-qualified filenames. -keyf:<filename> | -keyfile:<filename> Strongname (sign) the output assembly using the key pair present in the specified strong name key file (snk). A full key pair is required unless the delay signing option is also specified (-delay+). This is equivalent to adding the [AssemblyKeyFile ("<text>")] attribute into C# source code. -keyn:<text> | -keyname:<text> Strongname (sign) the output assembly using the key pair present in the specified container. Delay signing isn't supported when using key containers. This is equivalent to adding the [AssemblyKeyName ("<text>")] attribute into C# source code. -main:<method> Specifies the method name of the assembly entry point. -nologo Suppress the startup banner and copyright message. -out:<filename> Output file name for the assembly manifest. -prod:<text> | product:<text> This inserts the product name into the assembly metadata. This is equivalent to adding the [AssemblyProduct ("<text>")] attribute into C# source code. -productv[ersion]:<text> This inserts the product version into the assembly metadata. This is equivalent to adding the [AssemblyInformationalVersion ("<text>")] attribute into C# source code. -t[arget]:<target> | -target=<target> Valid <target>s are: lib | library to create a library (.dll), exe to create a console executable (.exe), and win | winexe to create a Windows executable (.exe). -template:<filename> Specifies an assembly to get default options from. -title:<text> This inserts an assembly title into the assembly metadata. This is equivalent to adding the [AssemblyTitle ("<text>")] attribute into C# source code. -trade:<text> | -trademark:<text> This inserts a trademark message into the assembly metadata. This is equivalent to adding the [AssemblyTrademark ("<text>")] attribute into C# source code. -v:<version> | -version:<version> This inserts the assembly version into the assembly metadata. You can use * to auto-generate remaining numbers. This is equivalent to adding the [AssemblyVersion ("<text>")] attribute into C# source code. -win32icon:<filename> Use this icon for the output. -win32res:<filename> Specifies the Win32 resource file. -? | -help Display information about AL SEE ALSO
sn(1), monolinker(1) COPYRIGHT
Copyright (C) 2005 Novell, Inc (http://www.novell.com) MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details. WEB SITE
Visit: http://www.mono-project.com for details al(1)