Giter Site home page Giter Site logo

openaadl / polyorb-hi-c Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 48.0 2.49 MB

PolyORB-HI/C runtime for Ocarina, supports POSIX, RTEMS, Xenomai, XtratuM RTOS

Home Page: http://www.openaadl.org

License: Other

C 88.43% C++ 4.24% Ada 1.21% Papyrus 0.10% Shell 1.17% Python 0.58% Makefile 1.82% M4 2.15% Perl 0.24% SWIG 0.06%
aadl c

polyorb-hi-c's People

Contributors

angelperezm avatar antcis avatar bouazizrahma avatar maxime-esa avatar yoogx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

polyorb-hi-c's Issues

Support for Compcert broken

The support for compcert is currently broken

  • detection of compiler is not working
  • a few elements in the linking phase to be solved

Support for large messages

In its current implementation, PolyORB-HI/C is limited to packed of size < 64KiB. This should be changed to a uint32_t type.

No error message emitted when RTEMS not installed and using RTEMS_POSIX target

The makefile stopped immediately with an inaccurate error message:

/Users/hugues/local/ocarina/include/ocarina/runtime/polyorb-hi-c/make/Makefile.leon.rtems_posix:10: /Makefile.inc: No such file or directory
/Users/hugues/local/ocarina/include/ocarina/runtime/polyorb-hi-c/make/Makefile.leon.rtems_posix:12: /make/leaf.cfg: No such file or directory
make: *** No rule to make target `/make/leaf.cfg'. Stop.

Reported by Nivedita Velagaleti

Scheduling issue

The computation of delay for both periodic and sporadic tasks is buggy, reported by ESA

Clean up RTEMS Makefile

RTEMS targets has multiple makefiles, one is enough since everything is steered by RTEMS_MAKEFILE_PATH

build error

when I build ocarina with runtime polyorb-hi-c ,It raises the following error.

rm -f polyorb-hi_ug_ref.bbl
TEXINPUTS=".:.:" \
     BIBINPUTS=".:.:" \
     BSTINPUTS=".:.:" \
        '\nonstopmode \input polyorb-hi_ug_ref.tex'
/bin/bash: \nonstopmode \input polyorb-hi_ug_ref.tex: command not found
make[5]: [polyorb-hi_ug_ref.aux] Error 127 (ignored)
TEXINPUTS=".:.:" \
     BIBINPUTS=".:.:" \
     BSTINPUTS=".:.:" \
        polyorb-hi_ug_ref
/bin/bash: polyorb-hi_ug_ref: command not found
make[5]: [polyorb-hi_ug_ref.bbl] Error 127 (ignored)
sed: can't read polyorb-hi_ug_ref.bbl: No such file or directory
make[5]: *** [polyorb-hi_ug_ref.texi] Error 2

Improve FreeRTOS support

This ticket monitors improvement in support FreeRTOS
As an initial target, we aim at support Discovery kits

Fix warnings

The following warnings should be fixed in the runtime:

po_hi_transport.c:457:66: warning: unused parameter 'task_id' [-Wunused-parameter]
po_hi_transport.c:457:90: warning: unused parameter 'port' [-Wunused-parameter]
po_hi_transport.c:526:73: warning: unused parameter 'src' [-Wunused-parameter]
po_hi_transport.c:526:99: warning: unused parameter 'dst' [-Wunused-parameter]
po_hi_transport.c:539: 100: warning: unused parameter 'p' [-Wunused-parameter]

po_hi_semaphore.c:39:107: warning: unused parameter 'id' [-Wunused-parameter]

po_hi_task.c:483:40: warning: cast between incompatible function types from 'void * ()(void)' to 'void * ()(void )' [-Wcast-function-type]
err = pthread_create (&tid, &attr, (void
()(void))start_routine, arg);
^
And these in the generated code:

activity.c : variable "error" is set but not used

Error should be reported as CRITICAL

In case of errors in the concurrency API, e.g. creating mutex, we should print using a CRITICAL statement, not debug.

[This duplicates ESA/TASTE ticket 521]

compile error when build ping-local

when I build some examples in aadlv2,It cause compiler errors.

yj:ping $ pwd
/home/yj/git/ocarina/resources/runtime/polyorb-hi-c/examples/aadlv2/ping
yj:ping $ ocarina -b -x scenario-local.aadl 
make generate-asn1-deployment target-objects compile-c-files compile-cpp-files compile-ada-files compile-po-hi ping.o activity.o subprograms.o types.o request.o marshallers.o deployment.o naming.o main.o 
make[1]: Entering directory `/home/yj/git/ocarina/resources/runtime/polyorb-hi-c/examples/aadlv2/ping/ping_local/node_a'
make[1]: Nothing to be done for `generate-asn1-deployment'.
make[1]: Nothing to be done for `target-objects'.
gcc -c -I. -I"/usr/local/include/ocarina/runtime/polyorb-hi-c/include" "-I/home/yj/git/ocarina/resources/runtime/polyorb-hi-c/examples/aadlv2/ping"  -DTARGET=native  -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE -D__PO_HI_USE_TRANSPORT -I'/home/yj/git/ocarina/resources/runtime/polyorb-hi-c/examples/aadlv2/ping/' '/home/yj/git/ocarina/resources/runtime/polyorb-hi-c/examples/aadlv2/ping/ping.c' -o ping.o
make[1]: Nothing to be done for `compile-cpp-files'.
make[1]: Nothing to be done for `compile-ada-files'.
for f in po_hi_task.o po_hi_time.o po_hi_protected.o po_hi_main.o po_hi_messages.o po_hi_marshallers.o po_hi_giop.o po_hi_utils.o po_hi_types.o po_hi_monitor.o po_hi_storage.o po_hi_gqueue.o drivers/po_hi_driver_exarm.o drivers/po_hi_driver_keyboard.o drivers/po_hi_driver_exarm_ni_6071e_analog.o drivers/po_hi_driver_exarm_ni_6071e_digital.o drivers/po_hi_driver_usbbrick_spacewire.o drivers/po_hi_driver_linux_serial.o drivers/po_hi_driver_leon_serial.o drivers/po_hi_driver_leon_eth.o drivers/po_hi_driver_serial_common.o drivers/po_hi_driver_sockets.o drivers/po_hi_driver_rtems_ne2000.o drivers/po_hi_driver_rasta_serial.o drivers/po_hi_driver_rasta_common.o drivers/po_hi_driver_rasta_1553.o drivers/po_hi_driver_xc4v_fpga.o drivers/po_hi_driver_rasta_1553_brmlib.o drivers/po_hi_driver_rasta_spacewire.o  po_hi_transport.o ; do \
       c_file="`basename $f .o`.c"; \
       c_file_dirname="`dirname $f`"; \
      if [ -n "$c_file_dirname" ]; then \
         if [ ! -d $c_file_dirname ]; then mkdir -p $c_file_dirname ; fi ; \
          gcc -I. -I"/usr/local/include/ocarina/runtime/polyorb-hi-c/include" "-I/home/yj/git/ocarina/resources/runtime/polyorb-hi-c/examples/aadlv2/ping"  -DTARGET=native  -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE -D__PO_HI_USE_TRANSPORT -c -o $f '/usr/local/include/ocarina/runtime/polyorb-hi-c/src/'$c_file_dirname'/'$c_file  || exit 1 ; \
      else \
          gcc -I. -I"/usr/local/include/ocarina/runtime/polyorb-hi-c/include" "-I/home/yj/git/ocarina/resources/runtime/polyorb-hi-c/examples/aadlv2/ping"  -DTARGET=native  -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE -D__PO_HI_USE_TRANSPORT -c -o $f '/usr/local/include/ocarina/runtime/polyorb-hi-c/src/'$c_file || exit 1 ; \
      fi ; \
    done
/usr/local/include/ocarina/runtime/polyorb-hi-c/src/./po_hi_transport.c: In function ‘__po_hi_transport_get_model_name’:
/usr/local/include/ocarina/runtime/polyorb-hi-c/src/./po_hi_transport.c:390:14: error: ‘NULL’ undeclared (first use in this function)
       return NULL;
              ^
/usr/local/include/ocarina/runtime/polyorb-hi-c/src/./po_hi_transport.c:390:14: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/include/ocarina/runtime/polyorb-hi-c/src/./po_hi_transport.c: In function ‘__po_hi_transport_get_protocol_configuration’:
/usr/local/include/ocarina/runtime/polyorb-hi-c/src/./po_hi_transport.c:463:11: error: ‘NULL’ undeclared (first use in this function)
    return NULL;
           ^
make[1]: *** [compile-po-hi] Error 1
make[1]: Leaving directory `/home/yj/git/ocarina/resources/runtime/polyorb-hi-c/examples/aadlv2/ping/ping_local/node_a'
make: *** [node_a] Error 2

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.