summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Nick Downing [Sun, 22 Jan 2017 01:41:18 +0000 (12:41 +1100)]
Move bcopy() and friends into strings.h, move mkdir(), mknod() and friends into sys/stat.h, make <stdint.h> and XintXX_t non-xified, tidy up Xintptr_t stuff
Nick Downing [Sun, 22 Jan 2017 00:43:35 +0000 (11:43 +1100)]
Now have a scheme to delete stale xified sources as we traverse the include path not finding the original source, to prevent gcc finding stale ones by accident
Nick Downing [Sun, 22 Jan 2017 00:21:05 +0000 (11:21 +1100)]
Now have proper xification of dependencies even if main file hasn't changed
Nick Downing [Sat, 21 Jan 2017 17:50:16 +0000 (04:50 +1100)]
xification of dependencies using a pipe to receive dependencies from xifyfilt as they are discovered, it works okay but is vulnerable to indirect dependencies being changed or deleted, so I'll have to use a file instead of a pipe
Nick Downing [Sat, 21 Jan 2017 15:59:27 +0000 (02:59 +1100)]
Now have caching of xified C sources using a modification time check
Nick Downing [Sat, 21 Jan 2017 11:51:35 +0000 (22:51 +1100)]
Make xified linker automatically create links like .xify/libx_c.a -> ../libc.a
Nick Downing [Sat, 21 Jan 2017 10:28:28 +0000 (21:28 +1100)]
Put libx_c makefiles almost back to standard, by using xifying C compiler
Nick Downing [Sat, 21 Jan 2017 06:32:56 +0000 (17:32 +1100)]
Redo the xified cc based on bin/cc.c, also add an xified ld based on bin/ld.c
Nick Downing [Fri, 20 Jan 2017 06:43:56 +0000 (17:43 +1100)]
Install the xification and xified C compiler in a sensible place and fix paths
Nick Downing [Fri, 20 Jan 2017 05:19:22 +0000 (16:19 +1100)]
Add a transparently xifying C compiler in xify/cc, need to fix hard coded paths
Nick Downing [Fri, 20 Jan 2017 04:12:21 +0000 (15:12 +1100)]
Get fopen() and friends working properly, also perror(), fix vopen() prototype
Nick Downing [Fri, 20 Jan 2017 03:20:32 +0000 (14:20 +1100)]
Rationalize arguments to syscalls, make unimplemented syscalls report on stderr before aborting, implement some more syscalls for linux hosted version
Nick Downing [Fri, 20 Jan 2017 01:13:41 +0000 (12:13 +1100)]
Update post.patch, some more char *->void * adjustments
Nick Downing [Fri, 20 Jan 2017 01:04:02 +0000 (12:04 +1100)]
Move libstdc to libx_c
Nick Downing [Fri, 20 Jan 2017 00:58:11 +0000 (11:58 +1100)]
Add modf() so that printf() works with floating point formats
Nick Downing [Thu, 19 Jan 2017 13:14:53 +0000 (00:14 +1100)]
Now have isatty(), getpagesize(), write(), fstat(), sbrk() and "hello, world"!
Nick Downing [Thu, 19 Jan 2017 12:45:35 +0000 (23:45 +1100)]
Can now compile hello program, it aborts at the first unimplemented system call
Nick Downing [Thu, 19 Jan 2017 11:33:48 +0000 (22:33 +1100)]
Start converting Makefiles, add linux/csu/crt0.c and linux/sys/write.c
Nick Downing [Thu, 19 Jan 2017 10:12:45 +0000 (21:12 +1100)]
Now converted all of libstdc to compile without errors under gcc
Nick Downing [Thu, 19 Jan 2017 09:38:10 +0000 (20:38 +1100)]
More int->void fixups and function pointer argument types added with __P((...))
Nick Downing [Thu, 19 Jan 2017 09:05:19 +0000 (20:05 +1100)]
Make a post-patching scheme, use it to add ANSI C compatibility for signals etc
Nick Downing [Thu, 19 Jan 2017 04:37:41 +0000 (15:37 +1100)]
Significant progress on getting libstdc to compile, fixed various missing or lax declarations, conflicts, bugs in the conversion scripts, and so on
Nick Downing [Wed, 18 Jan 2017 16:02:47 +0000 (03:02 +1100)]
Can now compile headers with gcc
Nick Downing [Wed, 18 Jan 2017 14:33:50 +0000 (01:33 +1100)]
Now got full dependency check in q.sh which reports results in *.[ch].uses, and separate script in r.sh which rebuilds *.[ch] with all necessary edits at once
Nick Downing [Wed, 18 Jan 2017 04:25:39 +0000 (15:25 +1100)]
Get mini dependency check working just for generated files (syscall stubs, etc)
Nick Downing [Wed, 18 Jan 2017 00:50:55 +0000 (11:50 +1100)]
Start again with a better approach to patching and a different order of transformations so we will be able to run cproto earlier, on more-or-less original code
Nick Downing [Tue, 17 Jan 2017 11:58:08 +0000 (22:58 +1100)]
Fully redo p.sh dependency check in s.sh with also prototype dependency checks, the check is a bit complicated as regards struct/union references since a struct/union pointer in the main part of a header file do not pull in the definition, but the same struct/union pointer in the prototypes part of a header file does
Nick Downing [Tue, 17 Jan 2017 11:08:21 +0000 (22:08 +1100)]
Change things around so that the p.sh script (add #include to *.[ch] to satisfy macro/typedef/struct/union dependencies) can be reused after adding prototypes
Nick Downing [Mon, 16 Jan 2017 15:05:40 +0000 (02:05 +1100)]
Now generating prototypes for all C files and putting them in sensible places
Nick Downing [Sun, 15 Jan 2017 14:54:17 +0000 (01:54 +1100)]
Make c->h dependencies not care whether a struct reference is only a pointer
Nick Downing [Sun, 15 Jan 2017 14:26:23 +0000 (01:26 +1100)]
Now computing dependencies quite nicely, all headers compile, can run cproto
Nick Downing [Sun, 15 Jan 2017 09:02:30 +0000 (20:02 +1100)]
Script to rediscover dependencies between header files and from c to headers
Nick Downing [Sun, 15 Jan 2017 03:39:19 +0000 (14:39 +1100)]
Preparatory stuff that collects includes and libc files, identifies assembly source and finds a c version from 4.3tahoe if possible or supplies a stub based on the lint-library, removes multiple-inclusion protection from header files, identifies and removes header dependencies and K&R style prototypes in headers
Nick Downing [Sat, 14 Jan 2017 06:45:08 +0000 (17:45 +1100)]
Patches to cproto to fix varargs handling and adjust output, add xify program
Nick Downing [Thu, 12 Jan 2017 08:28:54 +0000 (19:28 +1100)]
Add original cproto-4.6
Nick Downing [Thu, 12 Jan 2017 08:26:09 +0000 (19:26 +1100)]
4.3BSD source tree from Mckusick's CDROM