Differences

This shows you the differences between two versions of the page.

chibios:kb:saveram [2010/12/04 16:08]
127.0.0.1 external edit
chibios:kb:saveram [2011/10/03 20:57] (current)
giovanni [Saving RAM by declaring thread functions noreturn]
Line 1: Line 1:
 ====== Saving RAM by declaring thread functions "noreturn" ====== ====== Saving RAM by declaring thread functions "noreturn" ======
 +
 +<HTML>
 +<table>
 +<tr>
 +<td>
 +</HTML>
  
 One of the problems, when writing embedded multi-threaded applications, is that the thread functions do save the registers in the function entry code even if the system does not require it, exiting such a function would terminate the thread so there is no need to preserve the register values, this can waste tens of bytes for each thread. One of the problems, when writing embedded multi-threaded applications, is that the thread functions do save the registers in the function entry code even if the system does not require it, exiting such a function would terminate the thread so there is no need to preserve the register values, this can waste tens of bytes for each thread.
 +
 +<HTML>
 +</td>
 +<td>
 +<!-- Place this tag where you want the +1 button to render -->
 +<div align="right">
 +<g:plusone size="tall"></g:plusone>
 +</div>
 +</td>
 +</tr>
 +</table>
 +
 +<!-- Place this tag after the last plusone tag -->
 +<script type="text/javascript">
 +  (function() {
 +    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
 +    po.src = 'https://apis.google.com/js/plusone.js';
 +    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
 +  })();
 +</script>
 +</HTML>
  
 ===== The problem ===== ===== The problem =====
 
chibios/kb/saveram.txt · Last modified: 2011/10/03 20:57 by giovanni
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.3