On Sat, 2 Sep 2000, Rodolphe Ortalo wrote:

> 
> 
> On Thu, 31 Aug 2000, Christoph Egger wrote:
> > The DDL-Compiler doesn't create any binary. No - the DDL-Compiler is
> > principally a translator from DDL to C.
> > 
> > A driver written in DDL, will be compiled in two steps:
> > 
> > DDL -> C            (done by the DDL-compiler)
> > C   -> binary module        (done by the C-Compiler)
> 
> Yes. But, from what I understood of LDDK (I gave it a look yesterday), the
> DDL compiler generates a (sort of) "driver stub" - conformant to the linux
> kernel internal API. It generates open(), ioctl(), close() etc. functions.
> 
> This is not at all what I had in mind (I think). DDL aims at providing a
> well-written and conformant driver.

Why shouldn't be the KGI-drivers well-written non-conformant?
 
> I'd rather like to have a language that could help the device driver
> programmer to write easily and concisely some of the repetitive (and
> error-prone) parts of the driver code: the hardware register access
> functions (and #define-d constants: mask, registers addresses, etc.). But
> the programmer is still in charge for the entire organization of the
> driver code (while something like DDL might help him in such a task).
> 
> So, I'd rather target a hardware description language than a driver
> definition language. Btw, both ideas are probably not exclusive.

IMHO the DDL should create also the framework, which is currently done by
Steffen's Shell-Scripts.
 
> I'll try to work more on my idea this week-end and post a few
> examples; because I find it rather uncomfortable to speak without examples
> to give. Give me some time to clarify my ideas and explain them better
> with a few good old VGA registers and some tentative syntax!
> 
> Finally, IMHO, the LDDK and DDL approach is tightly linked to the
> targetted operating system (linux). Well, I may be wrong, but it's my
> feeling.

Not just "tightly". As the name of LDDK says:
(LDDK = _Linux_ Driver Development Kit) Linux is the primary plattform.

To avoid mixing up DDL coming with LDDK and our DDL we are speaking about, we
should give it a new name. 

I suggest DDL4KGI (Driver Development Language for KGI)


CU,

Christoph Egger
E-Mail: [EMAIL PROTECTED]

P.S.: For all interested guys, who wanna have a look into LDDK for ideas:
The Website of LDDK is http://www.llp.fu-berlin.de/pool/software/dutil/

Reply via email to