On 07.10.2015 08:48, Kustaa Nyholm wrote:
> 
> However, does the C-standard say anything about this? I always prefer
> to adhere to the standard as far as language features are concerned.

No C standard that I know of mentions interrupt handlers. However, C11
introduced threads, and has wording that implies that malloc(), etc are
thread-save. Threads are optional in C11, and are unlikely to ever be
supported in the library that comes with SDCC.
Whoever implementes threads whatever way probably would have to take
care of the malloc() situation at that time.
AFAIK, in Unix, malloc() is thread-save, but not save to be called from
signal handlers.

Philipp

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports 
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to