Programming :: Use Absolute Sections In Gnu Assembler?

Feb 14, 2011

how to use absolute sections in gnu assembler?

View 2 Replies


ADVERTISEMENT

Software :: Installing Sections 2 And 3 Of Man Pages - Install Additionally Sections?

Mar 20, 2010

I have man properly installed on my boxes (I have ubuntu and debian, I would also be interested in how to do this for fedora) however only section 1 of the man pages is available. How do I install additionally sections? I am particularly in need of sections 2 and 3. command line instructions needed. I don't have a desktop environment on all my boxes.

View 1 Replies View Related

Programming :: Write A Module In Pure Assembler?

Jan 16, 2010

I need to write a module in pure assembler.Now the linker needs symbols out of the kernel library to link to ( module_init, module_exit, printk).Does anybody know the kernel library name, or are these symbols only in the compressed kernel image (vmlinuz) ?And if, how can I link to a compressed kernel image ?

View 6 Replies View Related

Programming :: An Assembler Directive To Interpret All Constants In Hexa?

Jul 9, 2011

GNU assembler 2.17 And without having to prefix them. I'm skimming through as info page and can't find any pseudo operator or assembler directive of this type. E.g. 74 would be a decimal number. But I want it to be hexa 74 without the need to write 0x74.

NOTE: as is the GNU assembler.

EDIT: Google led me to discover this:

Quote:

If you write numbers without an explicit indication of the base, the most recent `.RADIX S' command determines how they are interpreted. However, on the one hand, it says the most recent and, on the other one, it applies to GASP, the GNU assembler preprocessor. IDK if it is the same as as (the GNU assembler).

View 2 Replies View Related

Programming :: GCC Inline Assembler Doesn't Even Support Local Variable?

Jul 3, 2010

It's good that GCC support intel inline disassembly syntax, but it cannot even simply address local variables/parameters properly, making itself stupid and essentially useless, look at the following:

int myfunc(float f){
int x;
float fa[8];
asm(".intel_syntax noprefix
"
"mov eax, [x]

[Code]...

View 1 Replies View Related

Programming :: Traverse Byte Array In Assembly Using Nasm As Assembler?

Jun 16, 2010

I am trying to learn assembly using nasm as assembler. I did not found example related to string operation. I had following example code,

global asm_strlen
section .data
section .bss
section .text

[code].....

my problem is at highlighted line, I am not getting how to copy a byte into 4 byte reg. rather what is syntax of mov instruction to mov byte to WORD DWORD etc.

View 3 Replies View Related

Programming :: Gc-sections Remove All Function Not Used?

Nov 18, 2010

This is my file, named xxx.c. And there are two functions in it.

[code]...

When I try to compile the whole project, I used -ffunction-sections,-fdata-sections to generate the .o files, use Wl,--gc-sections -Wl,--print-gc-sections to link to the exacutable file. gcc 4.3.2 ld 2.18 Debian 5 After the first time I compiled it, I got a list of Removed functions. But one second later, I rememberd that I forget to close the Compile Switch: Debug. Then I had to recompile it and got another list. Compare these two lists, I found that , bxx isn't on the second list. First I guess that bxx is a debug function but never used in debug mode, and it won't be compiled in release mode. I check the source and find that there was no compile switch for bxx. But it's caller function axx, is removed, both the debug switch is on and off. I try to compiled the project for several times , but the result is the same. I can't realized it , why? Is that the --gc-sections won't remove all the functions not used?

View 4 Replies View Related

Programming :: Get A Thin Black Line Around Sections Of A Webpage In PHP?

Feb 1, 2010

how to make a site like this one, LinuxQuestions itself - it puts a thin line around each post, to demarcate it - for the website I'm building, I need exactly this functionality. Do I have to use the "gd" library?

View 5 Replies View Related

Programming :: Python - Parsing Data In Chunks / Sections?

Nov 5, 2010

As a curious side project I'm playing with mzXML data(an xml format for holding mass spec data). A typical scan can be quite large, even up into GB size. I'm wondering how would one go about parsing an xml file in sections, one section at a time. The idea being if the computer doesn't have enough memory to load up the entire data file, work on chunks of it at a time.

View 3 Replies View Related

Programming :: Bash Scripting Handling User Input Sections Automatically?

Jun 17, 2010

I have a system setup script for my Slackware installations that pulls all packages and source files from another machine and sets everything up to be identical between machines. The script works as expected but make it entirely unattended. How do I make the bash script deal with automatically selecting "Yes" for, for example "Install x(Yes/No): " when prompted by a make file?

View 3 Replies View Related

Programming :: Assign Absolute Address To Pointer

Dec 20, 2010

I want to assign an address location to a pointer and wanted to display the value at that memory location.I wrote a small program for this and it is like this : (i am using gcc 4.4 compiler)

# include "stdio.h"
int main()
{
unsigned int *a;
a=(unsigned int *)0x3f8;
printf("%u",*a);
return 0;
}

But it is giving Segmentation fault

View 14 Replies View Related

Programming :: Reading The Absolute File-path As Sorted?

Jun 13, 2010

I wanted to read out the absolute file-path (filename) as sorted in a folder (on Linux). The reading the file-paths is ok but I have problems in sorting.

Code:

selectedDirectory = fl_dir_chooser ("Select Imagedirectory:",NULL,0); //This is just a widget to show the folder.
DIR *d;
dirent *de;

[code]....

The files -105.dcm, -106.dcm, -107.dcm lie in the folder at the bottom and -36.dcm, -37.dcm- at the top. The program compares 1 and 3 of 105 and 37, 1 is lesser than 3, then prints out first, but does not know that 105 is three digits and 37 is two digits.

View 1 Replies View Related

Programming :: Java Applet Not Loading Image With Relative Path But With Absolute Path / Resolve It?

Jul 17, 2009

Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server

View 2 Replies View Related

Programming :: Can I Get Absolute Path Without Giving A "path" But Inode Number By C

Aug 13, 2010

Does anyone know how to get the path with a inode number by C programming?
Or can I get the absolute path without giving a "path" but a inode number by C?

like this: get_path(unsigned inode);
not such this function: getcwd(".", xxx);
taowuwen@gmail.com

View 7 Replies View Related

General :: Installing Ia32build (Intel Assembler)?

Aug 28, 2010

I am looking for a assembler, in my college there is a ia32build assembler. I have tried searching it in Google, but I can't find it. I have x86 processor and I want to install it in Ubuntu 10.4.

Edit 1 : I am not sure about the assembler name but we assemble it by ia32build command.

Edit 2 : The syntax is quite different from nasm. Here's my sample code.

.intel_syntax noprefix
.text
msg: .asciz "Hello World !"[code].....

View 2 Replies View Related

Software :: How To Install Tsam ( Turbo Assembler )

Mar 4, 2010

presently am doing an LTSP project i have sucessfully insatlled DosBox and Oracle in fedora9 now i wanted to install tsam ( Turbo Assembler )

View 1 Replies View Related

General :: Screen Broken Into Sections

Sep 22, 2010

I just installed ubuntu 9.1 on an inspiron 4000. The screen looks like like its been split and I can't see the options to try to change display options. I have uploaded a picture from my phone. It kinda sucks but it's there. I have tried "sudo dpkg-reconfigure xserver-xorg". this gives me nothing but an empty prompt. I have also tried "sudo nano /etc/X11/xorg.conf". this gives me box where I can type but enter doesn't make it submit, just moves down a line and there is no information there like it seems there should be. I got to the display preferences and it says the monitor is unknown. changing the display resolution does not fix it. FIXED by going here: [URL]...

View 1 Replies View Related

General :: Screen Broken Up In Three Sections

Feb 12, 2010

I just installed ubuntu 9.1 on an inspiron 4000. The screen looks like like its been split and I can't see the options to try to change display options. I can't post pictures here but if you have a way for me to, I have some pictures too.

View 2 Replies View Related

Ubuntu Servers :: Not Clear With Certain Sections Of Apache

Jul 13, 2010

I am not clear with certain sections of apache I saw a default virtual host file. as follows

[code]...

What does Directory / here represents is it same as document root or different. The following section where /var/www is included in Directory Index

[code]...

I am not clear as why by default ScriptAlias is present in the default vhost is it necessary to keep in other Virtual Hosts. Similarly /doc/ what is this referring to in following section

[code]...

View 2 Replies View Related

Server :: Why Mysql Automatically Logging In Without .my.cnf Or My.cnf Sections

May 16, 2010

I've checked and double checked that there is no user and password directive in /etc/my.cnf and ~/.my.cnf but it seems that every time I issue mysql it will drop me into the command line without prompting for a password or giving any pause. Of course, the only table I have access to when doing this is information_schema with read only on most of it and no access on the rest, but I was just wondering where else an auto-login style authentication could be coming from.

View 11 Replies View Related

General :: Open Office - Drawing Sections Full Of Script Font

Apr 6, 2009

Today I assembled a machine and installed Ubuntu 8.4...I think. When I opened Open office, more specifically the drawing section, the toolbars were full of a script font and I am not sure of how to change it to something I can read.

View 4 Replies View Related

General :: How To Install EXE Files On Absolute

Feb 3, 2010

I am trying to install the livestream procaster on absolute linux. I've downloaded it and its a .exe file when i click it a mesage comes up that says "No run action specified for files of this type (application/x-ms-dos-executable) - you can set a run action by choosing 'Set Run Action' from the File menu, or you can just drag the file to an application."

View 4 Replies View Related

Slackware :: No Internet Conection On Absolute 13.1.6?

Jan 30, 2011

I got the system installes. But it seems that I can't connect to the internet. Trying to pdate the system via gslapt doesn't work. Always says the repositories can't be reached. I use a home network with a skydsl modem and a router. All my other pc's can connect without a problem. It seems that something is not working right here with my Absolute install. I can't even set up a browser or add the Gnome BSG as said with lynx.

View 14 Replies View Related

Security :: IPTables - Absolute Minimum For A Laptop?

Jun 12, 2011

What would be the minimum iptables rules for laptops that travel a lot, and might connect in potentially hostile networks? I came up with (log rules left out):

Code:
iptables -F
iptables -X
iptables -P FORWARD DROP
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m conntrack --ctstate INVALID -j DROP

[Code]...

View 7 Replies View Related

Fedora :: Error 1: Filename Must Be Either An Absolute Pathname Or Blocklist

Jul 26, 2009

I get the following error when I try to boot vista thru grub. This is what I did, Got a new Hard drive installed it. Configured the bios to look at the new hard drive first. after installing vista on the new hard drive I switched the boot order and added the lines for vista(last 3 lines) in /boot/grub/grub.conf. I get the following the following error.I have to change the bios everytime i have to boot vista.

error 1: Filename must be either an absolute pathname or blocklist
#boot=/dev/sda
default=0
timeout=15
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.29.6-213.fc11.x86_64)

[Code]...

View 3 Replies View Related

General :: Extracting Absolute Directory From Type Command?

Sep 26, 2010

I need to extract the absolute directory from the type command when I pass it a program name. E.g.

Code:

>type cat
cat is hashed (/bin/cat)

There is one other case (I believe):

Code:

>type lpr
lpr is /usr/bin/lpr

I thought of using regex, but it returns the whole line, not just the match. In addition, there is no option cited in the man page for type that returns just the command directory.

Note: this is part of my solution to a programming assignment in bash shell scripting.

View 1 Replies View Related

Debian :: LXDE Panel Temp Item Showing Absolute Zero

Apr 6, 2015

Bizarrest thing after swapping in my HDD from an old laptop into a new one. My LXDE panel temperature display is showing "-273," AKA absolute zero in celcius. I've done a bit of googling for lxde temp sensor, and most of the discussions I saw referred to installing lm-sensors, which apparently I did not yet have, although on my old laptop the temperature was shown correctly. I believe the automatic sensor location is off and I need to give it the correct location manually. I am unsure of how to do that, and it makes sense that it's hardware specific. After installing lm-sensors, I saw that sensors-detect provides me with a list of the correct temp sensors in my computer, but I'm unsure how to save those results so the computer can use them.

View 5 Replies View Related

Ubuntu :: Way To CD Directly From Symbolic Link To Real Absolute Directory?

Sep 24, 2010

Is there a way to cd directly from a symbolic link to the real absolute directory?

View 3 Replies View Related

Hardware :: Dual Boot With Dos Absolute Two Seperate Hard Drives?

Jun 25, 2010

Ok so first off my hardware Asrock 775dual-vsta Master and Slave hard drives on primary IDE Absolute Linux 2.6.33.3 ; Dos 7.1 (yes Dos 7.1 by itself no windows whatsoever) Absolute Linux=sda1 ; Dos=sdb1

Ok so I can't boot into dos from lilo boot menu. It boots fine however if I tell the bios to boot from the second HDD first (DOS). But it's inconvenient to tell the bios every time on power-up to choose the second hard drive as the first boot device. Here is my lilo.conf boot section

# Linux bootable partition config begins
image = /boot/bzImage
initrd = /boot/initrd.gz
root = /dev/sda1

[Code]...

Either way when I boot from the first hard drive (linux hard drive) and lilo pops up, I select dos and hit enter then nothing... It just sits there and ctrl-alt-delete can't reboot my comp as it's frozen.

I don't wanna have to tell the bios to select my dos hard drive as my primary boot device everytime I wanna boot dos. I wan't my linux hard drive to be my primary boot device and have my dos hard drive selectable from the lilo boot menu. Why can't I do that? What am I doing wrong? I thought this was easier than dual booting from a single hard drive?

View 5 Replies View Related

General :: Command Line - Get Relative Path From Two Absolute Paths In Shell?

May 13, 2010

We have two paths. First one is directory, second either dir or file.

/a/b/c and /a/d/e.txt

Relative path from first path to second will be: ../../d/e.txt

How to get it in linux terminal?

PS: For those who ask "what is use case?" - creating lots of relative symlinks (just as an example)

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved