Hello! I have a simple program in C language that I was hoping to compile in the SDCC compiler so I could download it onto my 8051 microcontroller. The code is:

/* Hello World program */

#include<stdio.h>

main()
{
    printf("Hello World");

}


The issue I am having is when I compile this in SDCC, the error reads:
?ASlink-Warning-Undefined Global '_putchar' referenced by module 'vprintf'

I tried putting in a general putchar code but that didn't work, it just gave me more errors in the compiler. Do you know how to fix this or what we need to add to our code in order for the compiler to properly compile it? Any help and/or suggestions are appreciated.

Thanks in advance!