mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
If your main module has this declaration: STATIC_YOINK("vga_console"); Then a VGA driver will be linked into your executable which displays your stdio characters on the PC display, whereas before we could only use the serial port. Your display is an ANSI terminal and it's still a work in progress.
20 lines
1 KiB
C
20 lines
1 KiB
C
#if 0
|
|
/*─────────────────────────────────────────────────────────────────╗
|
|
│ To the extent possible under law, Justine Tunney has waived │
|
|
│ all copyright and related or neighboring rights to this file, │
|
|
│ as it is written in the following disclaimers: │
|
|
│ • http://unlicense.org/ │
|
|
│ • http://creativecommons.org/publicdomain/zero/1.0/ │
|
|
╚─────────────────────────────────────────────────────────────────*/
|
|
#endif
|
|
#include "libc/math.h"
|
|
#include "libc/stdio/stdio.h"
|
|
|
|
STATIC_YOINK("vga_console");
|
|
|
|
int main(int argc, char *argv[]) {
|
|
volatile long double x = -.5;
|
|
volatile long double y = 1.5;
|
|
printf("Hello World! %.19Lg\n", atan2l(x, y));
|
|
return 0;
|
|
}
|