1 2 3 4 5 6 7 8 9 10 11 12
13 14 15 16 17 18 19
20
21 package xdc.runtime;
22
23 /*!
24 * ======== SysStd ========
25 * Implementation of `{@link ISystemSupport}` using ANSI C Standard Library
26 *
27 * This implementation provides a fully functional implementation of
28 * all methods specified by `ISystemSupport`. As with all
29 * `ISystemSupport` modules, this module is the back-end for the
30 * `{@link System}` module.
31 *
32 * This implementation relies on the target's runtime support libraries
33 * (i.e. `fflush()` and `putchar()`). Therefore the functions are re-entrant
34 * (thread-safe) if the underlying rts library is re-entrant.
35 */
36 module SysStd inherits xdc.runtime.ISystemSupport {
37 /*!
38 * ======== abort ========
39 * Backend for `{@link System#abort()}`
40 *
41 * This abort function writes the string via `putchar()`
42 * and flushes via `fflush()` to `stdout`.
43 *
44 * @see ISystemSupport#abort
45 */
46 override Void abort(String str);
47
48 /*!
49 * ======== exit ========
50 * Backend for `{@link System#exit()}`
51 *
52 * This exit function flushes via `fflush()` to `stdout`.
53 *
54 * @see ISystemSupport#exit
55 */
56 override Void exit(Int stat);
57
58 /*!
59 * ======== flush ========
60 * Backend for `{@link System#flush()}`
61 *
62 * This flush function flushes via `fflush()` to `stdout`.
63 *
64 * @see ISystemSupport#flush
65 */
66 override Void flush();
67
68 /*!
69 * ======== putch ========
70 * Backend for `{@link System#printf()}` and `{@link System#putch()}`
71 *
72 * This function outputs the character via `putchar()`.
73 *
74 * @see ISystemSupport#putch
75 */
76 override Void putch(Char ch);
77
78 /*!
79 * ======== ready ========
80 * Test if character output can proceed
81 *
82 * This always returns TRUE.
83 *
84 * @see ISystemSupport#ready
85 */
86 override Bool ready();
87 }
88 89 90
91