LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > rainbowsally
User Name
Password

Notices


Uncategorized Entries with no category
Old

libLQ with slist funcs - A class inheritance example in C - Part 1

Posted 02-24-2012 at 06:44 AM by rainbowsally
Updated 04-09-2012 at 05:30 AM by rainbowsally (Better version available, same principles)

Note: this post was pretty obsolete and kind of complicated.

Here's a link to the newer makefile creator and libLQ that also has the slist (class inheritance in C) stuff.

http://www.linuxquestions.org/questi...eration-34648/
Member
Posted in Uncategorized
Views 432 Comments 0 rainbowsally is offline
Old

Starting With Stat (dyn linked shell routines)

Posted 02-19-2012 at 08:51 PM by rainbowsally

Features:
  • dynamic linkage of shell subroutines
  • automatically loading shell dependencies
In order to dynamically link subroutine files we need a method of blocking multiple loads of any file.

For this, we load a set of base definitions in a file named sub.sub. The sub.sub file includes some simple functions for listing functions and the main function that blocks multiple-loading as well as a 'sub.unload <filename> function so we can unload and reload subroutines while editing...
Member
Posted in Uncategorized
Views 1291 Comments 0 rainbowsally is offline
Old

Create a self-extracting archive

Posted 02-16-2012 at 05:45 AM by rainbowsally
Updated 05-20-2015 at 04:56 AM by rainbowsally (obsolete)

Note: This is pretty much obsolete at this point.
http://www.linuxquestions.org/questi...version-36555/ is a simpler, faster, more elegant C version of the same.

CHANGELOG Feb 22, 2012
Changed the temp dir from /tmp to $HOME/tmp so everyone has write and execute perms in it. Added more cleanups including removal of the temp dir unless the user already had it and was using it.

...
Member
Posted in Uncategorized
Views 2422 Comments 0 rainbowsally is offline
Old

Simple C: some ideas on how to find headers, names, and a name demangler tool

Posted 02-08-2012 at 03:23 AM by rainbowsally
Updated 08-06-2014 at 10:30 AM by rainbowsally

The simplest yet, I think.. at least the C program is.

Features:
  • tips on how to find C/C++ header paths and declarations
  • tips on how to find libs containing references and definitions
  • a super-simple program to demangle C++ names
----------------
Note: With even a simple automatic makefile generator such as the one built from sources in this blog (
http://www.linuxquestions.org/questi...-part-2-34421/),
...
Member
Posted in Uncategorized
Views 1434 Comments 0 rainbowsally is offline
Old

ASM: mixing assembler and C++

Posted 02-05-2012 at 12:05 PM by rainbowsally
Updated 08-06-2014 at 10:30 AM by rainbowsally

This is for intel 32 bit assembler. For 64-bits the calling convention is a bit different. See previous entries (specifically asm 64 bits) if you need a leg-up to break the 64 bit barrier.

Features:
  • Asm functions that can call class functions (using an object pointer) through jump vectors written in C.
  • Usage of extern "C" declarations to un-mangle names we need to keep simple for asm coding.

[If you really want to get down, you can use the mangled names as...
Member
Posted in Uncategorized
Views 1472 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 08:43 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
Open Source Consulting | Domain Registration