12-08-2011
Quote:
Originally Posted by
Corona688
You can also write other languages in C. Name any language -- Perl, PHP, Java, C#, awk, Python, sh -- and chances are, it was written in C.
Am I making a correct assertion that the runtime components of these languages (java, c#, python, etc) contain allot of assembler? What allows for allot of the interpretation in interpreted languages is the fact that there is already allot of code that has been compiled into assembler and is all ready to call on when needed.
LMHmedchem
This User Gave Thanks to LMHmedchem For This Post:
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
Can someone explain how to compile assembly language code. I made my first assembly language code, but don't know how to run it. I know i can debug with gdb, but is there any way to just compile it and get the answer like in C and java compilers. (3 Replies)
Discussion started by: Learnerabc
3 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. Programming
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
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
8. 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
9. 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
10. Programming
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
LEARN ABOUT DEBIAN
lingua::preferred
Preferred(3pm) User Contributed Perl Documentation Preferred(3pm)
NAME
Lingua::Preferred - Perl extension to choose a language
SYNOPSIS
use Lingua::Preferred qw(which_lang acceptable_lang);
my @wanted = qw(en de fr it de_CH);
my @available = qw(fr it de);
my $which = which_lang(@wanted, @available);
print "language $which is the best of those available
";
foreach (qw(en_US fr nl de_DE)) {
print "language $_ is acceptable
"
if acceptable_lang(@wanted, $_);
}
DESCRIPTION
Often human-readable information is available in more than one language. Which should you use? This module provides a way for the user to
specify possible languages in order of preference, and then to pick the best language of those available. Different 'dialects' given by
the 'territory' part of the language specifier (such as en, en_GB, and en_US) are also supported.
The routine "which_lang()" picks the best language from a list of alternatives. The arguments are:
o a reference to a list of preferred languages (first is best). Here, a language is a string like 'en' or 'fr_CA'. ('fr_*' can also be
given - see below.) 'C' (named for the Unix 'C' locale) matches any language.
o a reference to non-empty list of available languages. Here, a language can be like 'en', 'en_CA', or "undef" meaning 'unknown'.
The return code is which language to use. This will always be an element of the available languages list.
The cleverness of this module (if you can call it that) comes from inferring implicit language preferences based on the explicit list
passed in. For example, if you say that en is acceptable, then en_IE and en_DK will presumably be acceptable too (but not as good as just
plain en). If you give your language as en_US, then en is almost as good, with the other dialects of en following soon afterwards.
If there is a tie between two choices, as when two dialects of the same language are available and neither is explicitly preferred, or when
none of the available languages appears in the user's list, then the choice appearing earlier in the available list is preferred.
Sometimes, the automatic inferring of related dialects is not what you want, because a language dialect may be very different to the 'main'
language, for example Swiss German or some forms of English. For this case, the special form 'XX_*' is available. If you dislike Mexican
Spanish (as a completely arbitrary example), then "[ 'es', 'es_*', 'es_MX' ]" would rank this dialect below any other dialect of es (but
still acceptable). You don't have to explicitly list every other dialect of Spanish before es_MX.
So for example, supposing @avail contains the languages available:
o You know English and prefer US English:
$which = which_lang([ 'en_US' ], @avail);
o You know English and German, German/Germany is preferred:
$which = which_lang([ 'en', 'de_DE' ], @avail);
o You know English and German, but preferably not Swiss German:
$which = which_lang([ 'en', 'de', 'de_*', 'de_CH' ], @avail);
Here any dialect of German (eg de_DE, de_AT) is preferable to de_CH.
Whereas "which_lang()" picks the best language from a list of alternatives, "acceptable_lang()" answers whether a single language is
included (explicitly or implicitly) in the list of wanted languages. It adds the implicit dialects in the same way.
AUTHOR
Ed Avis, ed@membled.com
SEE ALSO
perl(1).
perl v5.8.8 2005-10-17 Preferred(3pm)