bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Can gperf be made to generate code that will compile on EBCDIC syste


From: Bruno Haible
Subject: Re: Can gperf be made to generate code that will compile on EBCDIC systems?
Date: Thu, 26 Mar 2009 02:25:43 +0100
User-agent: KMail/1.9.9

> I was wondering if gperf could be made to generate code that would work
> on an EBCDIC system

I don't know. You can make a test case like this:

1) On a normal machine do

   $ { echo foo; echo bar; } > test.gperf
   $ gperf -I test.gperf > test.c

2) Copy test.c to the EBCDIC system.

3) Compile test.c to an object file on that system. Does it succeed? If not,
   what are the error message and the usual information (system type, compiler
   brand, compiler version etc.)?

> Please note that I haven't yet investigated what changes would be
> required for gawk itself to use gperf-generated code.

Just #include the generated code and call it.

On the Makefile.am side, a rule like the following is useful:


GPERF = gperf

foo.h : foo.gperf
        $(GPERF) -m 10 $(srcdir)/foo.gperf > address@hidden
        mv address@hidden $@
BUILT_SOURCES        += foo.h
MOSTLYCLEANFILES     += foo.h-t
MAINTAINERCLEANFILES += foo.h
EXTRA_DIST           += foo.h


Bruno




reply via email to

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