Giter Club home page Giter Club logo

Comments (8)

zbyti avatar zbyti commented on May 25, 2024 1

If you become Mad Pascal Contributor then you'll see all reported cases :]

from mad-pascal.

zbyti avatar zbyti commented on May 25, 2024

You mean inline code defined as procedure? Macros in Pascal are #41

from mad-pascal.

GSoftwareDevelopment avatar GSoftwareDevelopment commented on May 25, 2024

Yes, that's exactly what I mean. :)

EDIT:
I'm more concerned with something like:

var
  screen:array[0..0] of byte absolute SCREEN_ADDR;
  screenOffset:byte;

procedure putToScreen(var ofs:byte; value:byte); MACRO;
begin
  screen[ofs]:=value; ofs:=ofs+1;
end;

begin
  screenOffset:=0;
  putToScreen(screenOffset,0);
  putToScreen(screenOffset,1);
  putToScreen(screenOffset,2);
  putToScreen(screenOffset,3);
  putToScreen(screenOffset,4);
end;

Where an equivalent would be created as a result:

var
  screen:array[0..0] of byte absolute SCREEN_ADDR;
  screenOffset:byte;

begin
  screenOffset:=0;
  screen[screenOffset]:=0; screenOffset:=screenOffset+1; (* macro call putToScreen(screenOffset,0); *)
  screen[screenOffset]:=1; screenOffset:=screenOffset+1; (* macro call putToScreen(screenOffset,1); *)
  screen[screenOffset]:=2; screenOffset:=screenOffset+1; (* macro call putToScreen(screenOffset,2); *)
  screen[screenOffset]:=3; screenOffset:=screenOffset+1; (* macro call putToScreen(screenOffset,3); *)
  screen[screenOffset]:=4; screenOffset:=screenOffset+1; (* macro call putToScreen(screenOffset,4); *)
end;

The procedure call stack is skipped and there is no JMP command in the assembler, and all the macro code would be INLINE, as it were, in the place of its call.

from mad-pascal.

GSoftwareDevelopment avatar GSoftwareDevelopment commented on May 25, 2024

Why don't I have insight into other Issues as just mine?

from mad-pascal.

GSoftwareDevelopment avatar GSoftwareDevelopment commented on May 25, 2024

Moving on, I ask the question:

Why don't I see all the reported cases?

This makes me misinformed and aware of global reported bugs/innovations.

(Sorry to post this in this thread, but this is the one that showed I can't see everything that is going on)

from mad-pascal.

GSoftwareDevelopment avatar GSoftwareDevelopment commented on May 25, 2024

Sorry, but I don't know everything in GitHubs yet - thanks for explaining

from mad-pascal.

zbyti avatar zbyti commented on May 25, 2024
uses crt;

procedure test; inline;
begin
  writeln(pi);
end;

begin
  test; readkey;
end.

fc7ae03

from mad-pascal.

GSoftwareDevelopment avatar GSoftwareDevelopment commented on May 25, 2024

Woow. So inline works like this :) OK, there was no topic :D

from mad-pascal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.