tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Re : Re: Re : Re: Extend tcc to use viable.


From: Steffen Nurpmeso
Subject: Re: [Tinycc-devel] Re : Re: Re : Re: Extend tcc to use viable.
Date: Fri, 25 Feb 2022 20:40:04 +0100
User-agent: s-nail v14.9.23-242-geaf79efaa9

Domingo Alvarez Duarte wrote in
 <7e75d3fa-a3af-0c9f-36ba-9e3dadc3e7c6@gmail.com>:
 |Hello Steffen !
 |
 |Thank you for pointing out 
 |https://directory.fsf.org/wiki/Lightweight_C++ I just downloaded it and 
 |fixed several compilers warnings/errors but but there is a need to add 
 |code to handle/ignore "__attribute__" for the preprocessed headers.
 |
 |I'm making my fixes available here 
 |https://github.com/mingodad/cfront-3/issues/6

Yes tremendous thing that too!

  CC  ../generic/generic.cpp:
  LINE x04: eval 'tcc -Du3b -U__GNUC__ -D__cfront__ -D__cplusplus=1 
-D__signed__= -D__null=0 -E -U__SIZE_TYPE__ -D__SIZE_TYPE__=unsigned 
-U__PTRDIFF_TYPE__ -D__PTRDIFF_TYPE__=int' ' -I../../incl -D__CFRONT_ANSI_OPT'  
'-Dc_plusplus=1' '' '' ' -I/x/src/cfront-3.git/incl' '../generic/generic.cpp' 
\>/x/src/cfront-3.git/tmpdir/CC.27512/cpptmp
  ../generic/generic.cpp: error: ../generic/generic.cpp: unrecognized file type
  CC: cpp failure: 1
  make[1]: *** [Makefile:46: generic.o] Error 1
  make[1]: Leaving directory '/x/src/cfront-3.git/lib/mk'
  make: *** [Makefile:27: libC.a] Error 2

For my own thing:

  gcc -I../../src -I../../include -Dsu_HAVE_DEVEL -Dsu_HAVE_DEBUG 
-Dsu_HAVE_CLOCK_GETTIME -Dsu_HAVE_NANOSLEEP -Dsu_HAVE_PATHCONF 
-Dsu_HAVE_UTIMENSAT -W -Wall -pedantic -Wno-uninitialized -Wno-unused-result 
-Wno-unused-value -E -o .main.o.i -c .main.cxx
  /x/src/cfront-3.git/cfront +a1 +L < .main.o.i > .main.o.i.c
  "/usr/include/sys/types.h", line 164: error: register_t __attribute__ : 
register_t is not a type name
  "/usr/include/sys/types.h", line 164: error:  argument has no type
  "/usr/include/bits/byteswap.h", line 33: error: __inline __uint16_t : 
__inline is not a type name
  "/usr/include/bits/byteswap.h", line 37: error:  undefined function 
__builtin_bswap16 called
  "/usr/include/bits/byteswap.h", line 48: error: __inline __uint32_t : 
__inline is not a type name
  "/usr/include/bits/byteswap.h", line 52: error:  undefined function 
__builtin_bswap32 called
  "/usr/include/bits/byteswap.h", line 69: error: __inline __uint64_t : 
__inline is not a type name
  "/usr/include/bits/byteswap.h", line 71: error: syntax error
  "/usr/include/bits/byteswap.h", line 73: error: syntax error
  "/usr/include/bits/byteswap.h", line 73: error:  __bsx undefined
  "/usr/include/bits/uintn-identity.h", line 32: error: __inline __uint16_t : 
__inline is not a type name
  "/usr/include/bits/uintn-identity.h", line 38: error: __inline __uint32_t : 
__inline is not a type name
  "/usr/include/bits/uintn-identity.h", line 44: error: __inline __uint64_t : 
__inline is not a type name
  "/usr/include/bits/types/__sigset_t.h", line 6: sorry, cannot recover from 
earlier errors
  make: *** [.makefile:67: .main.o] Error 14

it actually dies early with GlibC 2.35.
But hey it is really cool!

But you know, i mean, a 500KB all-in-all from-scratch thing that
invents a minimal C++-style language is possibly nicer than CFront
with all its history (and, in the end, failure).
Like QT which shipped their preprocessor for their fat and slow
(iirc) but super comfortable signal and slot scheme.
Many modern things could even include it in their release balls
easily, even gawk as an awk has an .xz ball of 3.25x.xxx bytes,
vim of >15MB .gz, perl almost 13MB .xz etc. etc.
The lwc .bz2 ball is 219KB.

 |Cheers !

Ciao!

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)



reply via email to

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