3 ms·
Partially, at least for MacPaint: “The high-level logic is written in Apple Pascal, packaged in a single file with 5,822 lines. There are an additional 3,583 li
by CharlesW 3y ago
Partially, at least for MacPaint: “The high-level logic is written in Apple Pascal, packaged in a single file with 5,822 lines. There are an additional 3,583 lines of code in assembler language for the underlying Motorola 68000 microprocessor…”
- pjmlp 3y agoThe typical remark in Pascal discussions. When Assembly is part of the picture in Pascal projects, it is always pointed out as it being the case. When C projects make use of inline Assembly all over the place, it is C, even though it isn't part of ANSI C standard, there isn't any reference to inline Assembly support, and not every C compiler does support such extensions.
- deaddodo 3y agoI code C pretty extensively and am pretty involved in the community. I rarely hear inline asm (itself, not the invocation) referred to as C; in fact it's pretty explicitly made clear by the general community that you should clearly delineate and cleanly separate asm code and mark that logic as machine specific. The __asm__ inliner is referred to as C, sure; but not the code itself. That would be like calling FFI'd C in Rust, "rust code". In addition, it 100% is in the standard beginning with "ANSI C" (C89): > C89/C90 standard (ISO/IEC 9899:1990): > * G.5.10 The asm keyword https://en.cppreference.com/w/c/language/asm https://en.cppreference.com/w/c/language/asm It's just an optional extension for compilers versus a core language feature.
- pjmlp 3y agoLets say that we don't hang on the same circles, actually it even comes up in some threads on HN. Yeah, that was the point of not being a core language feature, I should have expressed better.