Tiny Core Base > TCB Bugs
filetool.sh TC 10.1 trivial display bug: trailing slash in output
curaga:
Let's go with the filetool patch, given Greg's web use.
Juanito:
tinycore git updated
Rich:
Hi Greg Erskine
--- Quote from: Greg Erskine on August 12, 2019, 02:03:16 AM ---I often output rotdash into a <textarea> on a web page via filetool.sh. The backspace does not work now but it isn't a big problem.
If you add an escape character into the output it would be really bad for displaying via a web page. ...
--- End quote ---
I had no idea anyone used this for a web page. I suppose I could have printed a space followed by a backspace:
--- Code: ---printf(" \b");
--- End code ---
Since the backspace moves the cursor back 1 position the trailing space would simply get overwritten if more text were added.
If the next character was a newline, it would print the trailing space which wouldn't be visible anyway. This was the mechanism
that made the trailing slash visible.
jazzbiker:
--- Quote from: Rich on August 11, 2019, 11:59:18 PM --- Compiling under TC4 and using sstrip increases the executables size from 1688 bytes to 1708 bytes. In TC10 I can't get the size under 12324 bytes.
--- End quote ---
Hi, Rich!
Sorry for offtopic. Can you kindly explain to the newbie such a size difference?
Not a first mentioning of TC4 at the forum as the kind of milestone. What have changed later? Some kernel bloat?
Rich:
Hi jazzbiker
--- Quote from: jazzbiker on August 12, 2019, 11:30:41 AM --- ... Can you kindly explain to the newbie such a size difference? ...
--- End quote ---
I honestly don't know why the executable is so much larger. My guess is the current compiler has some "enhancements" not present
in the TC4 version that add some overhead. There appear to be some differences in how they were built.
TC4:
--- Code: ---tc@box:~/rotdash$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.6.1/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.6.1/configure --prefix=/usr/local --libexecdir=/usr/local/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --disable-bootstrap --with-system-zlib --enable-frame-pointer
Thread model: posix
gcc version 4.6.1 (GCC)
tc@box:~/rotdash$
--- End code ---
TC10:
--- Code: ---tc@E310:~/rotdash$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i486-pc-linux-gnu/8.2.0/lto-wrapper
Target: i486-pc-linux-gnu
Configured with: ../configure --prefix=/usr/local --enable-languages=c,c++ --disable-multilib --disable-bootstrap --disable-libmpx --with-system-zlib --libexecdir=/usr/local/lib --enable-frame-pointer --with-mpfr=/usr/local --with-gmp=/usr/local
Thread model: posix
gcc version 8.2.0 (GCC)
tc@E310:~/rotdash$
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version