view examples/hello.c @ 1655:ca8bb447fe5f

* src/hal_stub.c: (cyg_hal_gdb_interrupt) (cyg_hal_gdb_remove_break): Changed both to use _read_mem_safe/__write_mem_safe for inserting a breakpoint, and restoring the original instruction. The Xtensa architecture (and others maybe?) can have unaligned instructions, which caused unaligned load/store exception.
author jlarmour
date Thu, 27 May 2004 05:47:40 +0000
parents ead06911cbae
children
line wrap: on
line source

/* this is a simple hello world program */
#include <stdio.h>

int main(void)
{
  printf("Hello, eCos world!\n");
  return 0;
}