aboutsummaryrefslogtreecommitdiff
path: root/src/rt
Commit message (Collapse)AuthorAgeFilesLines
* Remove silly legacy glue-offset encoding, predicate runtime adjustments by ↵Graydon Hoare2011-04-091-6/+8
| | | | ABI. LLVM should inline most glue now.
* Avoid some gotchas with logging macrosBrian Anderson2011-04-072-15/+25
| | | | | I think this is sufficient to eliminate multiple evaluation and the possibility of accidental miscompilation from the logging macros.
* add FIXME related to the -fno-strict-aliasing workaroundMarijn Haverbeke2011-04-081-0/+2
|
* Initialize two more variables to keep darwin tinderbox happyMarijn Haverbeke2011-04-081-2/+2
|
* add -O2 when compiling rt, fix warnings triggered by optimizerMarijn Haverbeke2011-04-084-6/+6
|
* Move to macro-based logging checks in the C++ codeMarijn Haverbeke2011-04-0718-237/+254
| | | | | No functions should be called for log statements that turn out to be inactive.
* Change rust_vec to have a 16-byte header, to 16-byte-align vec-body data. ↵Graydon Hoare2011-04-021-0/+1
| | | | Major perf win.
* Um, that'd be, align the word *before* retpc. Addresses point to the low ↵Graydon Hoare2011-03-301-7/+7
| | | | part of a word. Un-XFAIL nbody on Darwin.
* Ensure task stacks start out with a 16-byte aligned entry frame. Should make ↵Graydon Hoare2011-03-301-22/+48
| | | | OSX behave a bit better.
* Another go at changing compile-command, this time using RBUILD env var.Graydon Hoare2011-03-251-1/+1
|
* Revert "Bulk-edit compile commands in emacs chatter to point to assumed ↵Graydon Hoare2011-03-251-1/+1
| | | | | | build/ dir off src root." This reverts commit 846f2e2ba994268725f38c36fa12f1a09f21615c.
* Bulk-edit compile commands in emacs chatter to point to assumed build/ dir ↵Graydon Hoare2011-03-251-1/+1
| | | | off src root.
* Parse FP literals without coercing to int. This allows parsing 64-bitTim Chevalier2011-03-251-0/+1
| | | | | | floats. However, if someone writes a literal that can't be represented precisely in 64 bits, the front-end will accept it while the back-end will (presumably) complain.
* Start making the standard-lib utf-8 awareMarijn Haverbeke2011-03-252-0/+22
| | | | | | Finally implements _str.is_utf8, adds from_chars, from_char, to_chars, char_at, char_len, (push|pop|shift|unshift)_char. Also, proper character I/O for streams.
* Placate win32 build; no idea how it can be working currently on tinderbox.Graydon Hoare2011-03-253-1/+18
|
* A first stab at the 'nbody' demo, with support for calling C sqrt().Lindsey Kuper2011-03-253-0/+8
|
* build: Generate an object file for stage0/libstd.dylibPatrick Walton2011-03-241-0/+1
|
* rustc: Open "use"d crates; add a _vec.vec_from_buf() method along the way; ↵Patrick Walton2011-03-242-0/+8
| | | | XFAIL use-import-export.rs in rustc
* Add .def.in files that I forgot to stage. Should put out burning tinderboxes ↵Patrick Walton2011-03-241-0/+68
| | | | on Windows and Darwin.
* Generate the platform-specific .def files at build timePatrick Walton2011-03-243-208/+0
|
* Make symbol resolution failures log under rust_log::ERR flag as well.Graydon Hoare2011-03-242-3/+4
|
* Add trailing semicolons to Linux .def filesPatrick Walton2011-03-241-1/+1
|
* Add a Linux .def file. Might put out burning tinderbox.Patrick Walton2011-03-241-0/+70
|
* rustc: Use a .def file for Darwin. Puts out burning Darwin tinderbox.Patrick Walton2011-03-241-0/+68
|
* Further support for floating-point. Literals with exponents workTim Chevalier2011-03-221-1/+8
| | | | | | and literals with the 'f32' or 'f64' suffixes work as well. In addition, logging things with the f32 or f64 type works. (float is still assumed to be a synonym for f64).
* Started adding support for floating-point type, floating-point literals, and ↵Tim Chevalier2011-03-211-0/+7
| | | | logging of floats. Other operations on float probably don't work yet.
* Add a suitable .def file for rustrt.dll on WindowsPatrick Walton2011-03-211-0/+70
|
* Add some C99 and C++ compatibility headers for MSVCPatrick Walton2011-03-213-0/+649
|
* Add some mutable variants of vector functions to the standard libraryPatrick Walton2011-03-181-0/+6
|
* rustc: Add str_from_cstr() and str_from_buf() functions to the standard ↵Patrick Walton2011-03-161-0/+23
| | | | library, as well as a test case
* Add functionality for running external programs to the std libMarijn Haverbeke2011-03-143-7/+97
| | | | See lib/run_program.rs.
* Extend stream functionalityMarijn Haverbeke2011-03-141-0/+3
| | | | | | Writer and reader streams now come with methods to write and read little-endian numbers. Whether that is the right place for such methods is debatable, but for now, that's where they live.
* Add basic file-system functionalityMarijn Haverbeke2011-03-143-18/+57
| | | | | std.fs.list_dir will list the files in a directory, std.fs.file_is_dir will, given a pathname, determine whether it is a directory or not.
* Yell louder when a linkage error in rt occurs, as compiler output fails ↵Graydon Hoare2011-03-071-2/+3
| | | | quietly on null return.
* Comment-out TRACK_ALLOCATIONS again. Leave a note about it.Graydon Hoare2011-03-021-1/+4
|
* Parse parameter types for fmt extensionBrian Anderson2011-03-021-1/+1
|
* Add ABI tagging to crates, adjust rustc output and runtime stack-frame setup ↵Graydon Hoare2011-02-226-24/+55
| | | | so access to argv works.
* Fix typo in rust_task::start. Should be copying 1 fewer initial arg.Graydon Hoare2011-02-211-2/+2
|
* Disable TRACK_ALLOCATIONS by default, it's a bit heavy-handed.Graydon Hoare2011-02-141-1/+1
|
* Commit the trap-failure hack to the runtime, since I keep using it in my ↵Graydon Hoare2011-02-101-0/+4
| | | | workspace anyways.
* Further corrections to the logging layer in runtime.Graydon Hoare2011-01-144-6/+8
|
* Change log buffer butes to a symbolic const in runtime.Graydon Hoare2011-01-145-11/+15
|
* Cleanup circular_bufferBrian Anderson2011-01-102-39/+56
|
* Remove the assumption that circular_buffer's buffer has a power of two sizeBrian Anderson2011-01-102-33/+65
| | | | | | It was not obvious how to make this implementation work when the unit size was not also a power of two, so for now just make the buffer size a multiple of the unit size so it can pass all the tests.
* Cleanup circular_buffer grow / shrink routinesBrian Anderson2011-01-101-4/+7
|
* Fix circular_buffer growth when _next != 0Brian Anderson2011-01-101-6/+7
|
* Remove tabsBrian Anderson2011-01-101-1/+1
|
* Don't allow circular_buffer to shrink below its original size when unit_sz ↵Brian Anderson2011-01-102-5/+7
| | | | is not a power of two
* Don't allow circular_buffer to shrink below it's initial sizeBrian Anderson2011-01-101-1/+3
|
* Fix the check for growing the circular_bufferBrian Anderson2011-01-101-1/+1
|