09-23-2010
You need to assemble it:
as your_prog.s -o your_prog.o
And then link it:
ld your_prog.o -o your_prog
You can then run it with ./your_prog
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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... (0 Replies)
Discussion started by: duoshock
0 Replies
2. Shell Programming and Scripting
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
3. Programming
Dear Buddies,
I need assembly code for a compiled c program in unix. Kindly help me....
Thanking you in advance. (1 Reply)
Discussion started by: karthik537
1 Replies
4. Programming
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
5. Programming
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
6. UNIX for Dummies Questions & Answers
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies
7. Programming
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
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
9. What is on Your Mind?
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
10. Homework & Coursework Questions
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
lc(Mono 2.6) lc(Mono 2.6)
NAME
lc - Mono License Compiler
SYNOPSIS
lc -c filename -t targetassembly [-i reference...] [-v] [-o outputpath] [-nologo]
DESCRIPTION
lc tool is a license compiler for Mono. It's used to convert a licenses.licx file to a resource that can be embedded into an executable.
When using commercial components for .NET they often require a license resource at runtime to make sure the developer was licensed to use
this control. The most common way of making sure the component was properly licensed is by using license resources. At compile time the
developer uses the lc tool to convert a licenses.licx file to a programname.exe.resources file and embed that as a managed resource during
compilation.
RUNTIME OPTIONS
The following options are available:
--complist=filename, -c filename
This option is used to specify the input file, the licenses.licx file to create a license reesource for. This option is required.
The license compiler will read each line in this file and try to load the types specified on that line.
--target=assemblyname, -t targetassembly
full assembly name with file extension for the target assembly. The license compiler uses this as a key when compiling the licenses.
It has to match the assembly the resource will be embedded in. This option is required.
--load=reference, -i reference
Assembly reference to load before trying to compile a license. This option is needed for assemblies where the references are not in
the gac. Compilers should pass all references to the license compiler.
--verbose,, -v
Gives more verbose output about the license compiling process.
--help, -h
Displays usage instructions.
--output=path, -o path
Target path file the licenses resource. By default the license compiler emits the resource in the current directory. The filename
will always match the target assembly passed to --target with .licenses added.
--nologo
Do not emit the "Mono License Compiler" logo on stdout while compilng.
LICENSE FILES
The format for the license files (licenses.licx) is the following:
# comment
namespace.type, assemblyname
namespace.type, full-assemblyname
All lines starting with a # are ignored. the first form requires that the assembly was loaded through the --load,-i option but does not
require the full assembly name, only the first part.
The second form requires the full assembly name including locale, version and publickeytoken.
MAILING LISTS
Mailing lists are listed at the http://www.mono-project.com/Mailing_Lists
WEB SITE
http://www.mono-project.com
SEE ALSO
mono(1), mcs(1)
lc(Mono 2.6)