Description
Dear Kevin
First of all thank you for this awesome compiler.
I encountered an issue in cray cos interactive mode:
printf("Hello World!\n");
would not print anything to screen when in COS interactive shell.
But fprintf(stderr, "Hello World!\n");
would print to screen in COS interactive shell.
I had to use the following macro #define printf(...) fprintf(stderr, __VA_ARGS__)
in source and pass it thru gcc preprocessor so as to get a file that I could compile so all the printfs would display stuff to interactive console.
Would it be possible to enable a mechanism such that if I define _COS_IA before stdio.h so that printf and related would print to stderr / or IA console?
Example:
#define _COS_IA
<stdio.h>
Also to make development easy, the new run_tmux in cray_sim and the automation commands could be used to test any changes.
Here is a video: https://x.com/VulcanIgnis/status/1896122766577025423/video/2
./run_tmux start
./run_tmux cos_boot_shell
on another terminal
./run_tmux attach
Then compile example, once boot is complete do in first shell:
./run_tmux cos_run_disk <path to binary>
It will create a disk and fetch the binary and run it in COS IA shell.
Edit: Pardon me if I am getting things wrong with Cray COS terminology, I am noob.