Giter VIP home page Giter VIP logo

pretgroup / forec Goto Github PK

View Code? Open in Web Editor NEW
4.0 6.0 2.0 491.39 MB

Tools developed for the ForeC synchronous parallel language

License: GNU General Public License v3.0

C++ 12.98% Makefile 0.49% C 58.70% Yacc 0.54% Lex 0.45% Tcl 0.09% Assembly 7.85% Shell 1.00% Python 0.29% Batchfile 0.01% MATLAB 0.04% VHDL 1.28% Smarty 0.01% HTML 0.11% Standard ML 0.01% Scheme 0.01% Verilog 0.84% q 0.01% Raku 0.01% Java 15.30%

forec's People

Contributors

eyip002 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

forec's Issues

ForeC compiler should support shared arrays

Shared arrays are not yet supported by the compiler. The first step is to support the (coarse grained) sharing of the array variable. Second step is to support the (fine grained) sharing of array slices.

ForeC compiler should synthesise input/output reactive interfaces

ForeC programs are compiled as standalone programs with no interface with its environment, i.e., the programmer has to manually implement reading and writing to external variables or I/O ports inside global ticks. This should be handled by the global tick scheduling routine, e.g., via interprocess communication over shared memory (sys/shm.h).

ForeC compiler does not detect shared use of variable via separate pointers

Compiler does not detect that state is shared among multiple threads.

#include <stdio.h>

int state = 0;
int* state_p1 = &state;
int* state_p2 = &state;

// Thread
thread hello(void) {
	*state_p1 = 5;
	printf("%d\n", *state_p1);
}

// Thread
thread world(void) {
	*state_p2 = 10;
	printf("%d\n", *state_p2);
}

// Function main: The entry point of the program.
int main(int argc, char **argv) {
	par(hello, world);
}

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.