[ruby-cvs:69368] k0kubun:r62187 (trunk): common.mk: install a single header file for JIT

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Sun Feb 4 14:49:22 JST 2018

k0kubun	2018-02-04 14:49:21 +0900 (Sun, 04 Feb 2018)

  New Revision: 62187


    common.mk: install a single header file for JIT
    compilation which is created by transforming a preprocessed vm.c.
    This file will be used by JIT compiler's generated code which we are
    going to have from succeeding commits.
    Makefile.in: generate MJIT header for UNIX environments.
    win32/Makefile.sub: generate MJIT header for mswin environments.
    At initial merge, we're going to support only MinGW for Windows. So the
    header installed by this file won't be used for short term, but we'll
    add mswin support in a half year or so, for sure.
    tool/transform_mjit_header.rb: New. This script was originally written as
    minimize_mjit_header.rb by Vladimir N. Makarov <vmakarov at redhat.com> for
    Feature 12589.
    Then I refactored a little so that it can conform CodeClimate CI which is
    currently set for Ruby's GitHub repository, and fixed some bugs and ported
    it to work on Windows.
    Also, as original minimize_mjit_header.rb takes too long time to run,
    this is modified to skip minimization step because having *static*
    unused definitions does not waste compilation time on -O2 since compiler
    can skip to compile unused static functions. So this does no longer
    "minimize" the header and is renamed.
    This header installation does NOT include a header to automatically
    export symbols used by MJIT. That's because original MJIT code was
    failing to export symbols in the import header in macOS environment.
    But I would like to have the functionality for maintainability in the
    future. I'll manually export things but it would be just an intemediate
    Patch by: Vladimir N. Makarov <vmakarov at redhat.com>
    Part of: Feature 12589 and 14235.

  Added files:
  Modified files:

More information about the ruby-cvs mailing list