LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > rainbowsally
User Name
Password

Notices



Uncategorized Entries with no category
Old

Assembler Stuff: Asm and Inline Asm

Posted 01-25-2012 at 08:15 PM by rainbowsally

Assembler Stuff: Asm and Inline Asm

Features:
  • Asm and inline asm examples
  • Using C macros to create global function names
  • Intel and ATT syntax
  • Viewing disassembly in a *.s file and using objdump

Let's get right to the point...

Code:
// main.c
// COMPILE: gcc main.c -o main --save-temps
// take a look at the C asm output file, 'main.s' afterwar

// 64 bit asm keeps part of the stack in registers in C, so let's
//
...
Member
Posted in Uncategorized
Views 802 Comments 0 rainbowsally is offline
Old

Quick Note = rpmerizor & retro dev files

Posted 01-25-2012 at 04:31 AM by rainbowsally

I noticed that rpmerizor doesn't include so symlinks in the package. (You have to add them to the spec as "%dir" types if you need them.)

As a result the current rpmerizor is pretty SAFE for retro development packages because it can't overwrite the default libs (*.so with no numeric extension).

However, I've asked eric to consider adding a switch so that we can include the symlinks as per "normal" development packages which usually only contain...
Member
Posted in Uncategorized
Views 328 Comments 0 rainbowsally is offline
Old

Frankenstein (bash) Meets GodziRRa (C/C++).

Posted 01-25-2012 at 03:57 AM by rainbowsally
Updated 08-06-2014 at 11:34 AM by rainbowsally

Frankenstein (bash) Meets GodziRRa (C/C++).

Changelog: Mar 31, 2012.
Added path correction noted by ntubski. Commandline was:
file-sig file-sig
should be:
./file-sig file-sig

[Thanks.]

Features:
  • Simple C program embedded in a bash script.
  • Program that doesn't print a newline at the end of a string.
  • Compiling without superuser privileges.
  • Ethical concerns.

Requires:
  • bash
  • gcc

Bash is so screwy it feels...
Member
Posted in Uncategorized
Views 6423 Comments 2 rainbowsally is offline
Old

Let's Go Retro Now - A RPM Extractor w/ Scripts

Posted 01-23-2012 at 09:10 PM by rainbowsally
Updated 04-05-2012 at 08:44 PM by rainbowsally (Kubuntu no longer has link to experimental/optimization forum on their main page. Can't find the link to the deb package build scripts I once uploaded there.)

[Note to myself: links to kubuntu forum re. deb extraction, rebuilding 2 places appears to be gone. It was in the Experimental section which appears to have been removed. :-( .]

Let's Go Retro Now - A RPM Extractor w/ Scripts

Especially when building retro packages from binary packages, we need to look out for old development files overwriting newer ones.

For deb packages, the process is a bit more complicated, but once you have a set of definitions...
Member
Posted in Uncategorized
Views 610 Comments 0 rainbowsally is offline
Old

Simple C: Filling in the blanks - A simple memory allocator/reallocator.

Posted 01-23-2012 at 08:32 AM by rainbowsally

No memdup()? No memcat()? No prob.

Today's Features:
  • Simple C/C++ program and new memdup() and memcat() functions.
  • C macros (spanning lines with backslash) to create 'lenient' aliases.
  • Type casting in C/C++ to override sometimes overly strict syntax checks.
Anyone that has used strdup() or strcat() knows how convenient those are. But when it comes to memory allocation and reallocation for other kinds of data the lack of simple standard mechanisms for this often leads to duplicated...
Member
Posted in Uncategorized
Views 4129 Comments 1 rainbowsally is offline

  



All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration