Sponsored Content
Top Forums Programming Does the assembler output differ between operating systems ? Post 302387334 by vishwamitra on Friday 15th of January 2010 09:52:28 AM
Old 01-15-2010
Question Does the assembler output differ between operating systems ?

The assembly code generated by assembler, from a C-source code depends on the CPU architecture underlying it, eg x-86 . Then does the assembler output of a simple C-source code (containing common function-calls of both windows and linux) differ between Operating Systems ?
 

10 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Modern Operating Systems: Tanenbaum

Chapters on Linux and Unix: http://www.prenhall.com/divisions/esm/app/author_tanenbaum/custom/mos2e/ Slides, figures, code, lots of goodies on-line! CHAPTER 10 CASE STUDY 1: UNIX AND LINUX 671 10.1. HISTORY OF UNIX 672 10.1.1. UNICS 672 ... (1 Reply)
Discussion started by: Neo
1 Replies

2. Filesystems, Disks and Memory

Operating Systems??

We are currently running two servers each with remote file systems mounted on each other. They need upgrading from Solaris 2.6 to 8. Does anyone know if there is a problem with having one server running Solaris 2.6 and the other v8?? Until we have time to upgrade them both. (2 Replies)
Discussion started by: hesmas
2 Replies

3. UNIX for Advanced & Expert Users

Opinions on db operating systems Wanted

I am interested in hearing anyones opinions on what OS they would choose to run a MySQl db and the reasons why, of course. I have a task to build a db server for a project that will be very busy if things work as the creative minds think that it will. I am running a FreeBSD box right now on... (0 Replies)
Discussion started by: smtpgeek
0 Replies

4. Shell Programming and Scripting

Unix Operating Systems Information Document

Hi all, I prepared a document on UNIX OS. Its an humble attempt to share my knowledge. Please review the document attached and correct if any mistakes and any suggestions to make it more useful and any troubleshooting information if needed to add. Please help in making the document to add... (2 Replies)
Discussion started by: gurukottur
2 Replies

5. Programming

How to use assembler (as) in UNIX? [I got errors using assembler]

Hi, folks, I have a simple program main.c. The program is very simple, just for testing purpose. The program was proven correct by using "gcc". Now I would compile it step by step from main.c to main.o. Here is what I did: cpp main.c main.i <This step succeeded> cc main.i -o... (5 Replies)
Discussion started by: meili100
5 Replies

6. UNIX for Advanced & Expert Users

Where the operating systems are going

Dear administrators I want to post the following question and, honestly, I don't know in which forum to post it since its general meaning. my question is: Where the operating system are going? Microkernel, monolithich or hybrid ? Because this question involves more forums at the same but... (2 Replies)
Discussion started by: Puntino
2 Replies

7. UNIX for Dummies Questions & Answers

unix Operating Systems 5

Hi :) I have unix Operating Systems 5 I need working for user logout befor 10 minutes,In the case that he is not active :o what do I do? :rolleyes: (4 Replies)
Discussion started by: fakhwork
4 Replies

8. Fedora

Unix-based operating systems

Hello. I own a MacBook (black) running Leopard (Mac OS X 10.5.8), and I'm curious about a few things -- any help will be very, very much appreciated. I'm pretty much a newbie to Unix, although I have some very basic command-line skills with Mac OS X's Terminal. So while I know how to work the... (13 Replies)
Discussion started by: Tron55555
13 Replies

9. Google Chrome OS

Do we need many Operating Systems?

we have windows linux- redhat ubuntu -or more i don't know unix- solares snow-lepord and recently chrome what do you think well when i sow that all has extentions like exe -dsb i felt scared (1 Reply)
Discussion started by: Anna Hussie
1 Replies

10. Shell Programming and Scripting

Store user input in differ

Hello all Can anyone help me to solve the below issue I want to take user input with space separated .The number of inputs can be variable like if user inputs 1 2 3 4 ouput will stored in as array a where i=4 and I can retreive the value like a =3 any thoughts how to do it ... (2 Replies)
Discussion started by: Pratik4891
2 Replies
Config::MVP::Assembler(3pm)				User Contributed Perl Documentation			       Config::MVP::Assembler(3pm)

NAME
Config::MVP::Assembler - multivalue-property config-loading state machine VERSION
version 2.200002 DESCRIPTION
First, you should probably read the example of using Config::MVP. If you already know how it works, keep going. Config::MVP::Assembler is a helper for constructing a Config::MVP::Sequence object. It's a very simple state machine that lets you signal what kind of events you've encountered while reading configuration. ATTRIBUTES
sequence_class This attribute stores the name of the class to be used for the assembler's sequence. It defaults to Config::MVP::Sequence. section_class This attribute stores the name of the class to be used for sections created by the assembler. It defaults to Config::MVP::Section. sequence This is the sequence that the assembler is assembling. It defaults to a new instance of the assembler's "sequence_class". METHODS
begin_section $assembler->begin_section($package_moniker, $name); $assembler->begin_section($package_moniker); $assembler->begin_section( $package ); This method tells the assembler that it should begin work on a new section with the given identifier. If it is already working on a section, an error will be raised. See "change_section" for a method to begin a new section, ending the current one if needed. The package moniker is expanded by the "expand_package" method. The name, if not given, defaults to the package moniker. These data are used to create a new section and the section is added to the end of the sequence. If the package argument is a reference, it is used as the literal value for the package, and no expansion is performed. If it is a reference to undef, a section with no package is created. end_section $assembler->end_section; This ends the current section. If there is no current section, an exception is raised. change_section $assembler->change_section($package_moniker, $name); $assembler->change_section($package_moniker); This method calls "begin_section", first calling "end_section" if needed. add_value $assembler->add_value( $name => $value ); This method tells the assembler that it has encountered a named value and should add it to the current section. If there is no current section, an exception is raised. (If this is not the first time we've seen the name in the section and it's not a multivalue property, the section class will raise an exception on its own.) expand_package This method is passed a short identifier for a package and is expected to return the full name of the module to load and package to interrogate. By default it simply returns the name it was passed, meaning that package names must be given whole to the "change_section" method. current_section This returns the section object onto which the assembler is currently adding values. If no section has yet been created, this method will return false. TYPICAL USE
my $assembler = Config::MVP::Assembler->new; # Maybe you want a starting section: my $starting_section = $assembler->section_class->new({ name => '_' }); $assembler->sequence->add_section($section_starting); # We'll add some values, which will go to the starting section: $assembler->add_value(x => 10); $assembler->add_value(y => 20); # Change to a new section... $assembler->change_section($moniker); # ...and add values to that section. $assembler->add_value(x => 100); $assembler->add_value(y => 200); The code above creates an assembler and populates it step by step. In the end, to get values, you could do something like this: my @output; for my $section ($assembler->sequence->sections) { push @output, [ $section->name, $section->package, $section->payload ]; } When changing sections, the given section "moniker" is used for the new section name. The result of passing that moniker to the assembler's "expand_package" method is used as the section's package name. (By default, this method does nothing.) The new section's "multivalue_args" and "aliases" are determined by calling the "mvp_multivalue_args" and "mvp_aliases" methods on the package. AUTHOR
Ricardo Signes <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo Signes. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-03-16 Config::MVP::Assembler(3pm)
All times are GMT -4. The time now is 10:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy