[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support of log10?

From: Peng Yu
Subject: Re: Support of log10?
Date: Thu, 1 Jul 2021 08:59:45 -0500

>      B. Write a loadable extension in C that calls the math library's
>         log10() function. The manual explains how to do this. This
>         would be a very simple extension that should not take long
>         to write.

       awka-elm - Awka Extended Library Methods

       Awka  is  a  translator  of  AWK programs to ANSI-C code, and a library
       (libawka.a) against which the code is  linked  to  create  executables.
       Awka is described in the awka manpage.

       The  Extended  Library  Methods (ELM) provide a way of adding new func-
       tions to the AWK language, so that they appear in your AWK code  as  if
       they were builtin functions such as substr() or index().

It sounds like the above is an even better approach. I can just
translate awk code to C then any C functions can be linked to the
translated program, which automatically solves two problems: 1) speed
up awk, 2) use functions not in awk already.

Anybody who has experience with awka-elm can share your experience
with awka-elm?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]