#mkOa
1 messages ยท Page 1 of 1 (latest)
Also for the sake of sanity this will be written only targetting em64t with 0 arch specific code separation.
Too much boilerplate I CBA to write on a phone.
were you going to try using the terminal app on the pixel? or was that giving issues
Ok I forgot header deps.
I wanted to and I was almost at the breaking point of Termux pissing me off but then I figured out how to bypass mtools, parted, sgdisk and get thefuck working so I ended up sticking with it (for now).
fair fair
it should be available on most android 16 device now
though sometimes youll get a java exception
then it wont work
could use proot-distro
The fact that this doesn't work ruined my day.
u0_a222@localhost ~> cat t.c
struct d {char d;};
int main() {
int x = __builtin_offsetof(struct d, sizeof(d
.
d), d);
}
The second operand of offset of has to be a lone identifier...
Like it makes sense lol.
Still sad.
Logic does not make grief go away.
Man C IS PISSING ME OFF.
oops caps lock.
But I guess its accurate.
I got too acquainted with modern language features and syntax.
Especially syntax.
I was trying to figure out how to make a nice API for port I/O and realized C has no RHS type inferrrence based on the LHS.
Which may some weird but its one of the cool thing my language has, where you can write u8 x = my_template(); and (assuming the signature is T my_template(T)();) the compiler deduces T to be u8.
And I would like that for my port in function.
IG in C++ you can fake this with type conversion operators.
OK I give up on my stupid idea.
But I will explain it anyways, I wanted to make an API which would sort of look like a builder and take a base and offset via a struct.
in(0x3F8).iobase(serial_port, ier)
OK writing code on a phone is much more annoying that I expected it to be.
lol
Well stuff is going very slowly I will not lie but we got a super basic integrated serial driver and a hello world!
I did not wire up interrupts yet, might do that far far later.
That is not even a formatted printer BTW.
ello

1642 fide why?
should say Hello, did it get cut off?
OK.
Developed on a phone? Are you insane?
not the only project in this server