Code Monkey home page Code Monkey logo

cs2cpp's Introduction

Hi there 👋

  • 🔭 I’m currently working on TypeScriptCompiler

cs2cpp's People

Contributors

alisci01 avatar asdalexander77 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cs2cpp's Issues

Great Project

Hi,
i like this (C# to C++) "cs2cpp" transpiler project.
its useful.
i have Starred this project.
it needs to be improved further.

Thanks.

EXTRA INFO : BTW , i have mentioned it in a Transpiler List here in SO(StackOverflow) site , would you please UPVOTE it here ( or vote to UNDELETE it ) ? please upvote my Question+Answer, both, if you find it useful or if you think it will be helpful for other users related to this type of transpiler projects . By the way, Transpiler-List can be seen from here or here or find it under my repo(s) here.
( and please downvote user Caleb's answer, as that is incorrect answer . Correct-answer must answer my questions first , My question is about "Transpiler" tools & which "transpiler" tool can keep high-level algorithms/structures intact , Question/article is NOT about language learning, when to transpile & when-not, etc.
In SO site, user Flimzy (and Caleb) doesn't give advice When "C/C++",etc to "Go" conversion related question is posted or when "C/C++" is criticized , But when "Go"-to-"C/C++",etc conversion Question is posted or when Google based products (like "Go"-language) are criticized , then those users, especially Flimzy "Close" the question & downvotes, & gives many un-asked advices, etc, Because those users are Google PUSHERS & google based product (like "Go", Google-Advertisements,etc) PUSHERS . Flimzy edited-out important text from my post criticizing Advertisements . Google Crimes1, 2, 3, 4, 5, 6. Problems in "Go"1, 2, 3, 4, 5, 6, 7. )

EDIT : i have Starred this project.
EDIT : added few more words & one link in upvote para.
EDIT : added few links for Transpiler-List new page.
EDIT : added links on "Go"/"Golang"-Problems.

Really great project - What's about NetStandard

Hi Alex,

first of all I would like to thank you very much for contributing your great cs2cpp project to us. Actually it generates really good and readable C++ Code - much better than CoreRT (it's more low-level).

For me it would be really nice if your CoreLib-implemantion would support netstandard (e.g. 1.4).
I saw you integrated many tests from Microsoft to your project (good idea). So I tried to execute them. The first issue for me was that I had to adjust your paths in CompilerHelper.cs - it would be good if there would be relative to the repository. Then I tried to execute some of the tests but they failed again - System.Globalization.Calender was not found what I couldn't believe (In the past I had a lot of issues with "finding code"). But then I checked the CoreLib directory - and it was really not there - but I found it in mscorlib dir. So my question is: Where you got the CSharp source code for the CoreLib and mscorlib - which version? What is your preferred lib (CoreLib or mscorelib)?
How many MS-tests are successfull?

Can we help you?

Greetings,

Bernd

Could not find file CoreLibImpl.zip

git clone https://github.com/ASDAlexander77/cs2cpp.git Il2Native

cd Il2Native

MSBuild Il2Native.sln /p:Configuration=Release /p:Platform="Any CPU"

D:\Il2Native\Il2Native.Logic\Properties\Resources.resx(141,5): error MSB3103: Invalid Resx file. Could not find file 'D:\Il2Native\Il2Native.Logic\Resources\CoreLibImpl.zip'. Line 141, position 5.

Failed to build Il2Native.

Fix: Update PowerShell to latest version.

CoreCLR

Developer is too lazy 😴

CoreLib is ignored if used with a csproj file

Hi Alex or Oleksandr,

in Il2Native.Logic.Cs2CGenerator the corelib param is ignored if you supply it via console-param (as you do with normal cs files). It must be defined in the csproj file itself which is very uncommon.

==> The if / else in line 61 should be removed. Just the call to LoadProject should be conditioned...

Kind regards,

Bernd

Source of CoreLib

Hi Alexander,

I would like to know from which source do you got the source code of the corelib - and which version was it?
Are there some docs (especially about extern, Impl and ImplPAL)?

Kind regards,

Bernd

DllImport/Pinvoke support

figured i try opening issues before i start working on things.

i was planning on tackling this next. my general idea was to generate function pointers for all dllimport functions that initially point to a trampoline that attempts to load the library/function. if it successfully loads, it'll replace the function pointer with what we grabbed, otherwise we throw an exception to mimic the JIT CLR behaviour.

ill probably leave out marshalling on the first pass, mostly because i always avoided it and need to do more proper research on it.

Is still in development?

Hi @ASDAlexander77 Your project It seems very interesting, but I did notice there is not changes or commits since Aug 3, 2017, is still on development?, I would do like to continue your project, but I don't know if it you have a guide, flow or something to help me how to understand the magic of this converter, because we are supporting a new platform and our project was made using C# with some C++ native libraries

Best Regards.

This project doesn't contain the Configuration and Platform combination of Release|Win32.

git clone https://github.com/ASDAlexander77/cs2cpp.git Il2Native

cd Il2Native

MSBuild Il2Native.sln /p:Configuration=Release /p:Platform="Any CPU"

cd CoreLib

MSBuild CoreLib.csproj /p:Configuration=Release /p:Platform="AnyCPU"

cd ..\..

mkdir playground

cd playground

..\Il2Native\Il2Native\bin\Release\Cs2Cpp.exe /release ..\Il2Native\CoreLib\CoreLib.csproj

cd CoreLib

build_prerequisite_vs2019_release.bat (modify build_prerequisite_vs2017_release.bat)
Build started 16/08/2022 6:32:43 AM.
     1>Project "D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ALL_BUILD.vcxproj" on node 1 (default targets).
     1>Project "D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ALL_BUILD.vcxproj" (1) is building "D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
     2>E:\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(436,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Release|Win32. [D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ZERO_CHECK.vcxproj]
     2>Done Building Project "D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ZERO_CHECK.vcxproj" (default targets) -- FAILED.
     1>Done Building Project "D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ALL_BUILD.vcxproj" (default targets) -- FAILED.

Build FAILED.

       "D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ALL_BUILD.vcxproj" (default target) (1) ->
       "D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ZERO_CHECK.vcxproj" (default target) (2) ->
       (PrepareForBuild target) -> 
         E:\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(436,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Release|Win32. [D:\GitHub\playground\CoreLib\__build_win32_release_bdwgc\ZERO_CHECK.vcxproj]

    0 Warning(s)
    1 Error(s)

Il2Native-Log.zip

Can you provide me prebuild binary?

cannot open input file 'gcmt-lib.lib'

Rebuild started...
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Release WIN32 ------
1>Checking Build System
2>------ Rebuild All started: Project: HelloWorld, Configuration: Release WIN32 ------
3>------ Skipped Rebuild All: Project: HelloWorld_pch, Configuration: Release WIN32 ------
3>Project not selected to build for this solution configuration 
2>Building Custom Rule D:/GitHub/HelloWorld/CMakeLists.txt
2>HelloWorld_PCH.cpp
2>HelloWorld.cpp
2>LINK : fatal error LNK1181: cannot open input file 'gcmt-lib.lib'
2>Done building project "HelloWorld.vcxproj" -- FAILED.
4>------ Skipped Rebuild All: Project: ALL_BUILD, Configuration: Release WIN32 ------
4>Project not selected to build for this solution configuration 
========== Rebuild All: 1 succeeded, 1 failed, 2 skipped ==========

gcmt-lib.lib missing.

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.