IRC channel logs

2021-07-28.log

back to list of logs

<oriansj>stikonas: yeah, I'll move the files from mescc-tools to stage0-posix
<stikonas>aren't those in bootstrap-seed
<stikonas>or maybe there are more files
<stikonas>I was thinking of bootstrap-seeds/POSIX/PV64/hex0_RV64.S
<oriansj>stikonas: I thought you were referencing the M0 example in mescc-tools
<stikonas>no, I meant .S file in bootstrap-seeds
<oriansj>ok, I'll fix that too
<stikonas>isn't M0 in mesc-tools actual source file for cc_x86
<oriansj>nope
<oriansj>just C version of M0 for knight
<oriansj>the C code for the cc_* are in https://github.com/oriansj/stage0/tree/master/stage2/High_level_prototypes
<oriansj>along with this masterpiece of efficient FORTH programming: https://github.com/oriansj/stage0/blob/master/stage2/High_level_prototypes/forth/FORTH.c
<oriansj>well C version of hex2 really has grown to deal with a great deal of architecture specific crap
<oriansj>and 208 lines of dealing with just the arguments
<oriansj>stikonas[m]: I have a very rough draft of word based support in hex2 up in the latest commit.
<oriansj>The logic is entirely in hex2_word.c
<oriansj>I've only confirmed the essentials but the jump and branch immdiate block bits might be wrong. Could you please do a sanity check.
<siraben>oriansj: lol I love that forth.c file
<siraben>##forth would have a field day with that
<siraben>but truly and honestly, Forth is not a bootstrapping language
<siraben>the language prevents you from building up abstractions well
<stikonas[m]>oriansj: I'll check in (European) evening today
<oriansj>The big question is are U format instruction relative displacement or absolute addresses
<stikonas>oriansj: U format is relative
<stikonas>it's relative to program counter
<stikonas>at least auipc instruction is
<oriansj>stikonas: good, then as it is now, should function for your needs
<stikonas>well, I'll check this evening...
<stikonas>although, before I start writing hex1, I might do kaem too, we'll see
<oriansj>I'll start on matching work for M1 as otherwise all immediates will be of the jump and load relative type.
***jackhill is now known as KM4MBG