I'm trying to declare a static const data using asm syntax inside of a struct.
Maybe something like this?
struct Z
{
public:
static char hello[] = asm volatile(".ascii \"Hello\"");
};
Note that this does not come even close to working. :) And my assembly is super rusty.
EDIT:
For those interested in this question and the reasons behind it, please see store non-nul terminated C string constant in C++.
This question was tangential and I didn't want to clutter that question up with it as well as it could have other uses beyond what I wanted it for which is why I started up a separate question.
Thanks for your interest and help.