[libc] Fix PATH bug in execvpe, update ewcc includes, speed up amalloc #2173
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When adding "time" to each of the build steps in ghaerr/8086-toolchain#31, it was found that the PATH wasn't being set properly for the
execvpe
system call.Slightly increase speed of amalloc in C86 and AS86 by not searching from the start of the arena each time. This delays free block merging until later, but shouldn't be a problem for amalloc, since it is a fixed size heap anyways. The search was originally set to start from the arena start so that the heap wouldn't continue to grow endlessly before having to sbrk to expand the heap, which is still being done in v7 malloc (debug malloc). Basically we have a classic time/space tradeoff, and amalloc is now tuned for time, whereas debug malloc is tuned for space. Since AS86 does 700+ mallocs each pass, this is worth it and the amalloc arena size is fixed (for now) anyways.
Removes searching for WATCOM headers in
ewcc
. Discussed in #2162 (reply in thread).Adds libc/include/watcom/float.h for building basic.c.