logs archiveBotHelp.net / Freenode / #2f30 / 2015 / July / 15 / 3
k0ga
now!
atmc
k0ga: youre reberto?
k0ga
roberto
atmc
oh yea sorry
typo
stateless
k0ga, http://sprunge.us/EVVI
ah I should have put it in build.sh
one sec
err maybe not
:)
k0ga
ups, I had a 'for (int'
!!!!
dammit
stateless
:)
k0ga
I don't know why I put it
stateless
typeof was being interpreted by gcc and was also the name of a func in cc1 :P
that's why i put -ansi
k0ga
I know it perfectly
fix your conmpiler
:P
stateless
:P
I use 4.2.1
:P
k0ga
4.2.1?
stateless
gcc 4.2.1
atmc
openbsd gcc
stateless
nice :)
I generated some code
k0ga
at this moment only + and - are supported in cc2
I think
stateless
i segfaulted it
:P
k0ga
:P
stateless
http://sprunge.us/Bfcb
try this :P
(i left out void on purpose)
k0ga
segfault, or abort?
stateless
segfault
segfaults even without the for loop
with void it works :P
k0ga
stateless: I don't support k&r functions
stateless
ok
k0ga
but I should control it better ^^!!!!!
stateless
http://sprunge.us/fhFd
this throws a syntax error :)
will have a play with it
k0ga
syntax error?
stateless
yes
k0ga
can you put here the error?
stateless
http://sprunge.us/HFWI
this is the output
k0ga
ok
it is an error in cc2, because it does not implemented jumps
cc2 is very, very simple
or draft
stateless
ah right :)
CandyGumdrop
Are you making a C compiler, k0ga ?
k0ga
yes
well, it isa suckless project now
stateless
k0ga, love the comment in allocreg()
lol
k0ga
hahahahhahaha
it means I have to do spilling
of some variable located in some register
CandyGumdrop
Do you have a public repo for it, k0ga ?
stateless
CandyGumdrop, http://git.suckless.org/scc/
k0ga
stateless: can you send the patch via mail?
stateless
k0ga, will send it to hackers
k0ga
ok
but I should do the official annoucement in dev
stateless
k0ga, or news@
but maybe wait until 0.1? :)
probably both news@ and dev@
Evil_Bob
k0ga: http://git.suckless.org/scc/tree/cc2/parser.c#n467 extra space there
it is literally unusable now
:P
stateless
k0ga, I think we should probably keep the z80 target
it will be easier to modularize when we add x86 support if we have more than one target
and z80 is easier to work with
so we can use it to test exotic stuff
k0ga
this is true
what do you think about the code?
stateless
k0ga, love it
FRIGN
stateless: k0ga: did you benchmark it? :D
stateless
FRIGN, lol it can't even jump
:P
FRIGN
like, compared to gcc, how fast is it?
stateless
lol
k0ga
FRIGN: this is the reason why I wrote the embedded cpp
stateless
FRIGN, the generated code cannot even do a jump atm
:P
k0ga
because without it, it is impossible to profile anything
stateless
nice
k0ga
stateless: well, I can profile cc1 alone ;)
stateless
yeah that's true
FRIGN
^^
are jumps that difficult to implement?
like no offense, but I always thought that jumps were a concept almost closest to asm
stateless
I don't think so, it just hasn't been done
FRIGN
just a label + jumpmark
« prev 1 2 3 4 5 next »