-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interest in stack_array? #134
Comments
The tricky part is how to do it without running afoul of the fact that From: Treb Connell [mailto:notifications@github.com] I'm interested in writing a preliminary stack_array using _alloca and alloca from windows and linux respectively. Is this worth pursuing or would it be better to wait for a more fleshed out gsl standard? — |
That's a very good point. I can't think of a good way around that except __forceinline which's the closest thing to that for MSVC won't work On Thu, Oct 8, 2015 at 1:25 PM Gabriel Dos Reis notifications@github.com
|
I believe GCC also places constraints on functions containing alloca. -------- Original message -------- That's a very good point. I can't think of a good way around that except __forceinline which's the closest thing to that for MSVC won't work On Thu, Oct 8, 2015 at 1:25 PM Gabriel Dos Reis notifications@github.com
Reply to this email directly or view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fMicrosoft%2fGSL%2fissues%2f134%23issuecomment-146677786&data=01%7c01%7cgdr%40microsoft.com%7ccabe0c0e694948cdb32b08d2d01fbac8%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=kjCSM9uKnbyLxxjulsa3%2f7dmrGS7Ukc9pKs6yHG08sw%3d. |
So to respond to your original question @trebconnell....yes, you would probably find it more useful to wait for a clearer GSL specification before you spend time trying to implement missing parts of it like stack_array. In the case of stack_array, I think one of the hurdles you will face is the ability to write an implementation that is compatible with compilers of target platforms and their ABI requirements. |
I'm interested in writing a preliminary stack_array using _alloca and alloca from windows and linux respectively. Is this worth pursuing or would it be better to wait for a more fleshed out gsl standard?
The text was updated successfully, but these errors were encountered: