Re: kext programming with VIM?
Re: kext programming with VIM?
- Subject: Re: kext programming with VIM?
- From: Andrew Gallatin <email@hidden>
- Date: Mon, 31 Jul 2006 13:38:15 -0400 (EDT)
NAHieu writes:
> hello,
>
> I am new to Mac programming, and have a question: it seems that the
> only way to do kext programming is to do it with Xcode? Can I do it
I feel the same way about xemacs (now, let's not burn each other at the
stake, we both dislike Xcode :), and my driver shares lots of a code,
including an autoconf/makefile build infastructure, with other OSes. So
I build my drivers with plain old Makefiles. It works like a charm.
You probably will need to start Xcode at least once every year or two,
though. What I do is to compile a sample "project" with Xcode so as
to find out what compiler flags are required after each major compiler
or OS upgrade.
BTW, the one "Trick" is that you may need a short .c file
to hold this glue:
#include <mach/mach_types.h>
extern kern_return_t _start (kmod_info_t * ki, void *data);
extern kern_return_t _stop (kmod_info_t * ki, void *data);
KMOD_EXPLICIT_DECL (com.mycompany.mydriver, "0.9.2", _start, _stop)
__private_extern__ kmod_start_func_t *_realmain = 0;
__private_extern__ kmod_stop_func_t *_antimain = 0;
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden