File: asm_goto.i

package info (click to toggle)
frama-c 20140301%2Bneon%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,548 kB
  • ctags: 28,183
  • sloc: ml: 181,252; ansic: 13,776; makefile: 2,452; sh: 1,085; lisp: 178
file content (9 lines) | stat: -rw-r--r-- 187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
int main(unsigned short bit) 
{
  asm goto ("1: jmp %l[t_no]\n"
       /* skipping size check since replacement size = 0 */
	    : : "i" (bit) : : t_no);
  return 1;
 t_no:
  return 0;
}