Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 242,748 of 243,242    |
|    highcrew to highcrew    |
|    NULL dereference in embedded [was: On Un    |
|    04 Jan 26 00:25:07    |
      From: high.crew3868@fastmail.com              On 1/4/26 12:15 AM, highcrew wrote:       > I have a horrible question now, but that's for a       > separate question...              And the question is:              Embedded systems. Address 0x00000000 is mapped to the flash.       I want to assign a pointer to 0x00000000 and dereference it to       read the first word.       That's UB.              How do I?              Now I guess that an embedded compiler targeting that certain       architecture where dereferencing 0 makes sense will not treat       it as UB. But it is for sure a weird corner case.              --       High Crew              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca