@baby_2023

Что обозначает __declspec(noinline)?

Что обозначает этот атрибут перед объявлением функции/метода класса? __declspec(noinline)

Читал документацию, но связать никак не смог.
  • Вопрос задан
  • 169 просмотров
Решения вопроса 1
vabka
@vabka
Токсичный шарпист
https://docs.microsoft.com/en-us/cpp/cpp/declspec?...
https://stackoverflow.com/questions/2284610/what-i...
https://docs.microsoft.com/en-us/cpp/cpp/noinline?...
__declspec(noinline) tells the compiler to never inline a particular member function (function in a class).

It may be worthwhile to not inline a function if it is small and not critical to the performance of your code. That is, if the function is small and not likely to be called often, such as a function that handles an error condition.

Keep in mind that if a function is marked noinline, the calling function will be smaller and thus, itself a candidate for compiler inlining.

Первая же строчка в гугле :)
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
16 мая 2024, в 23:36
200000 руб./за проект
16 мая 2024, в 23:10
12000 руб./за проект