Giter VIP home page Giter VIP logo

Comments (13)

FrankHB avatar FrankHB commented on June 14, 2024

Worth trying.

from mcfgthread.

lhmouse avatar lhmouse commented on June 14, 2024

@FrankHB

make it happen? 😂

from mcfgthread.

FrankHB avatar FrankHB commented on June 14, 2024

If I had time...
-1s :(

from mcfgthread.

CarterLi avatar CarterLi commented on June 14, 2024

Does this project have any problems compiling with clang on windows?

And what the target is? mingw-w64? msvc?

from mcfgthread.

lhmouse avatar lhmouse commented on June 14, 2024

@CarterLi
There might be. I haven't tested it yet.

from mcfgthread.

lhmouse avatar lhmouse commented on June 14, 2024

See http://lists.llvm.org/pipermail/cfe-dev/2017-March/053339.html.

from mcfgthread.

CarterLi avatar CarterLi commented on June 14, 2024

https://gcc.godbolt.org can generate Intel-style ASM somehow
https://godbolt.org/g/MyraQx

from mcfgthread.

lhmouse avatar lhmouse commented on June 14, 2024

That is irrelevant. The problem is that at the moment _seh_top.h doesn't compile on clang for i686. On x64 there is no problem because the AT&T and Intel dialects happen to be the same.

from mcfgthread.

vyache76 avatar vyache76 commented on June 14, 2024

not sure but
__asm__ volatile (
"mov{l} {%%fs:0, %0|%0, dword ptr fs:[0]} \n"
"mov{l} {%0, (%1)|dword ptr[%1], %0} \n"
"mov{l} {%2, 4(%1)|dword ptr[%1 + 4], %2} \n"
"mov{l} {%1, %%fs:0|dword ptr fs:[0], %1} \n"
: "=&r"(__pUnused) : "r"(__pSehNode), "p"(__MCFCRT_SehTopDispatcher)
);
`
will generate the same code for at&t and Intel syntax?

from mcfgthread.

lhmouse avatar lhmouse commented on June 14, 2024

I suspect that's correct.

At the moment we have -masm=intel which should be removed first. PRs are welcome.

from mcfgthread.

lhmouse avatar lhmouse commented on June 14, 2024

Refactored so far. I am not sure whether clang people would show any interest on this project as they seem to prefer native TLS (using MSVC as the backend).

from mcfgthread.

lhmouse avatar lhmouse commented on June 14, 2024

will generate the same code for at&t and Intel syntax?

static __attribute__((__always_inline__))

It seems there is no way to make clang accept Intel syntax, so I decide to stick to AT&T syntax, and leave Intel syntax in comments. This piece of assembly was actually created by disassembling GCC's output with GDB.

from mcfgthread.

lhmouse avatar lhmouse commented on June 14, 2024

This is the last error that is blocking Clang support: llvm/llvm-project#55329

from mcfgthread.

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.