From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: QUestion on C language
Date: Thu, 23 Dec 2010 03:33:54 +0700 [thread overview]
Message-ID: <AANLkTinUKp0iiNGXaU9c0181dUMcXkkDDqzUt3DoQ0sr@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikog7WH2b-xzEMjAL5dQO+8m40gEX2H50cv3mit@mail.gmail.com>
Hi...
On Thu, Dec 23, 2010 at 00:43, bhuvan gupta <bhuvangu@gmail.com> wrote:
> With due respect, I humbly request you to please throw some light on to
> below written question. i will highly appreciate your efforts.
You're a bit humble and polite than your predecessors :D but still, OOT is OOT
> but how to write this library , in what language they are written in?as
> standard ANSI C ?has round about 32 keywords ?
What do you mean by 32 keywords? Writing C library is like writing
normal code...
just watch out, we're target kernel space here. You can't use normal
libc function....so for example instead printf, you have to use
printk() or similar. And no floating point number operation...
NB: assuming you wanna made user space DSO (Dynamic Shared Object), is
just the code would be made as PIC (AFAIK it means Position
Independent Code). Google for ld (linker) to find out more about it.
here's one: http://www.gentoo.org/proj/en/hardened/pic-internals.xml
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
next prev parent reply other threads:[~2010-12-22 20:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 17:43 QUestion on C language bhuvan gupta
2010-12-22 20:33 ` Mulyadi Santosa [this message]
2010-12-22 21:31 ` Greg Freemyer
2010-12-23 4:06 ` Alex John
2010-12-23 6:54 ` Pei Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinUKp0iiNGXaU9c0181dUMcXkkDDqzUt3DoQ0sr@mail.gmail.com \
--to=mulyadi.santosa@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).