I know many assembly languages so my question isn't anything assembly related it's C++ related, I understand what __asm does and I've used it before but where's where I'm hung up on

__asm drops down to the assembly level for programming although it's not advisable to use it because it's not cross-platform compatible... How then is C++ compiled? It's got to be compiled to assembly as well, I've been hung up on this for a while. What does the compiler do that I can't do, not use specific processor features and just stick to general commands/opcodes.

Help would be appreciated as I would love to integrate assembly into my programs as the speed boost is tremendous wherever possible.

> I would love to integrate assembly into my programs

The assembly code that you would write is implementation dependent, and therefore non-portable.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.