Skip to content

Compiling Lua #61

@ahgamut

Description

@ahgamut

I thought it might be fun to compile a portable version of a language which has C source code.
I picked Lua, and I eventually got it to compile and run on Windows/Linux.

I thought some of the compilation errors might be useful info:

  • The following functions/macros in the Lua source clashed names with those in cosmopolitan.h: panic, reverse and isempty.
  • strcoll, tanh, sinh, and cosh are unimplemented (leads to linker error)
  • UCHAR_MAX in limits.h of the C stdlib is not defined even though SCHAR_MAX is
  • Maybe similar to printf doubles with %lf gives nan #58, but floats don't print in the portable Lua console

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions