Date: Tue, 27 Sep 1994 10:12:18 +0500 From: hvb AT netrix DOT com To: djgpp AT sun DOT soe DOT clarkson DOT edu, jorgec AT pluri DOT ucm DOT es Subject: Re: Physical memory access > unsigned char *mem; > > mem = 0x00400000; /* the first position on the board memory */ > *(mem) = 0x4F; /* write a value on the memory */ > For the physical memory access you should offset the memory location with 0xe0000000 (see DJPPP README doc.). > When I compile the program, the compiler give me the error > "segment violation error " > What's going on? > I guess, what are you reporting here is a run time error rather than a compile time error?